diff --git a/src/core/pyros_django/dashboard/views.py b/src/core/pyros_django/dashboard/views.py index b7c9b3f..c2fdce1 100644 --- a/src/core/pyros_django/dashboard/views.py +++ b/src/core/pyros_django/dashboard/views.py @@ -270,7 +270,8 @@ def agent_detail(request, agent_name): paginator = Paginator(agent_cmds, pyros_settings.NB_ELEMENT_PER_PAGE) page_number = request.GET.get("page",1) agent_general_commands = AgentCmd._AGENT_GENERAL_COMMANDS - agent_general_commands.remove("get_specific_cmds") + if "get_specific_cmds" in agent_general_commands: + agent_general_commands.remove("get_specific_cmds") config = OBSConfig(os.environ["PATH_TO_OBSCONF_FILE"],os.environ["unit_name"]) managed_agents = None agents_status = None -- libgit2 0.21.2