diff --git a/CHANGELOG b/CHANGELOG index f25cce7..f0ce7b5 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +25-11-2022 (AKo): v0.6.13.0 + - Add is_active field for agents in tnc obsconfig + 24-11-2022 (EP): v0.6.12.0 - Added tooltip to Agent specific commands - get_all_cmds => returns also tooltips diff --git a/VERSION b/VERSION index 7dfa74d..a115865 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.6.12.0 \ No newline at end of file +0.6.13.0 \ No newline at end of file diff --git a/config/schemas/schema_observatory-2.0.yml b/config/schemas/schema_observatory-2.0.yml index b56f50f..58a4c2e 100644 --- a/config/schemas/schema_observatory-2.0.yml +++ b/config/schemas/schema_observatory-2.0.yml @@ -44,6 +44,9 @@ schema;schema_AGENT_DEVICE: # if path_data_root is not defined, the default value will be os.environ['PROJECT_ROOT_PATH'] path_data_root: type: str + is_active: + type: bool + required: False schema;schema_AGENT: type: map @@ -62,6 +65,9 @@ schema;schema_AGENT: # if path_data_root is not defined, the default value will be os.environ['PROJECT_ROOT_PATH'] path_data_root: type: str + is_active: + type: bool + required: False schema;schema_ALBUMS: type: seq diff --git a/src/core/pyros_django/agent/AgentSST.py b/src/core/pyros_django/agent/AgentSST.py index 8486a2e..f70b346 100644 --- a/src/core/pyros_django/agent/AgentSST.py +++ b/src/core/pyros_django/agent/AgentSST.py @@ -166,7 +166,8 @@ class AgentSST(Agent): continue agent_informations = obs_config.get_agent_information(obs_config.unit_name,agent) protocol = agent_informations.get("protocol") - if protocol: + is_active = agent_informations.get("is_active",True) + if protocol and is_active == True: protocol_folder_abs_path = os.path.join(self.PROJECT_ROOT_PATH, os.path.dirname(protocol)) protocol_script_name = protocol.split("/")[-1] -- libgit2 0.21.2