From 6f465c3695688c3aab2c8e25dea5f3392df33ead Mon Sep 17 00:00:00 2001 From: Stefan Witschel Date: Fri, 25 Nov 2022 12:57:45 +0000 Subject: [PATCH] Sending supported Agent information to C8Y --- c8ydm/agentmodules/agent_initializer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/c8ydm/agentmodules/agent_initializer.py b/c8ydm/agentmodules/agent_initializer.py index f3f5184..9724738 100644 --- a/c8ydm/agentmodules/agent_initializer.py +++ b/c8ydm/agentmodules/agent_initializer.py @@ -33,8 +33,8 @@ def getMessages(self): self.logger.info(f'Agent Initializer called...') # Will be available with 1014.28.0 version = pkg_resources.require("c8ydm")[0].version - #agent_msg = SmartRESTMessage('s/us', '122', ['DM Reference Agent',version,'https://github.com/SoftwareAG/cumulocity-devicemanagement-agent','Open Source']) + agent_msg = SmartRESTMessage('s/us', '122', ['DM Reference Agent',version,'https://github.com/SoftwareAG/cumulocity-devicemanagement-agent','Open Source']) - agent_msg = SmartRESTMessage( - 's/uc/'+self.xid, self.agent_message_id, [self.serial, 'DM Reference Agent', version, '']) + #agent_msg = SmartRESTMessage( + # 's/uc/'+self.xid, self.agent_message_id, [self.serial, 'DM Reference Agent', version, '']) return [agent_msg]