Commit f70471e8ee94cabe79cf5b9fe60d8b6781eafebe
1 parent
fbec12e5
Exists in
dev
Work with a copy of agent_general_commands instead of the real values
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/core/pyros_django/dashboard/views.py
... | ... | @@ -269,7 +269,7 @@ def agent_detail(request, agent_name): |
269 | 269 | agent_cmds = agent_cmds.order_by("-s_deposit_time") |
270 | 270 | paginator = Paginator(agent_cmds, pyros_settings.NB_ELEMENT_PER_PAGE) |
271 | 271 | page_number = request.GET.get("page",1) |
272 | - agent_general_commands = AgentCmd._AGENT_GENERAL_COMMANDS | |
272 | + agent_general_commands = AgentCmd._AGENT_GENERAL_COMMANDS.copy() | |
273 | 273 | if "get_specific_cmds" in agent_general_commands: |
274 | 274 | agent_general_commands.remove("get_specific_cmds") |
275 | 275 | config = OBSConfig(os.environ["PATH_TO_OBSCONF_FILE"],os.environ["unit_name"]) | ... | ... |