Commit fbec12e5eec30cd3ee5334b51002669d927870fc

Authored by Alexis Koralewski
1 parent 81ed571f
Exists in dev

fix remove get_specific_cmds from list

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/core/pyros_django/dashboard/views.py
... ... @@ -270,7 +270,8 @@ def agent_detail(request, agent_name):
270 270 paginator = Paginator(agent_cmds, pyros_settings.NB_ELEMENT_PER_PAGE)
271 271 page_number = request.GET.get("page",1)
272 272 agent_general_commands = AgentCmd._AGENT_GENERAL_COMMANDS
273   - agent_general_commands.remove("get_specific_cmds")
  273 + if "get_specific_cmds" in agent_general_commands:
  274 + agent_general_commands.remove("get_specific_cmds")
274 275 config = OBSConfig(os.environ["PATH_TO_OBSCONF_FILE"],os.environ["unit_name"])
275 276 managed_agents = None
276 277 agents_status = None
... ...