diff --git a/src/core/pyros_django/obs_config/obsconfig_class.py b/src/core/pyros_django/obs_config/obsconfig_class.py index 888d1cf..b99c1c7 100644 --- a/src/core/pyros_django/obs_config/obsconfig_class.py +++ b/src/core/pyros_django/obs_config/obsconfig_class.py @@ -1379,8 +1379,10 @@ class OBSConfig: computer_agents = self.get_agents_per_computer(self.unit_name)[computer_hostname] print(f"{computer_agents=}") for computer_agent_name in computer_agents: - if agent_name in computer_agent_name: - return computer_agent_name + protocol_name = self.get_agent_information(computer_agent_name).get("protocol") + agent_real_name, _ = os.path.splitext(protocol_name): + if agent_name in agent_real_name: + return agent_name return agent_name def get_channel_of_agent(self, agent_name:str)->dict: -- libgit2 0.21.2