File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -124,15 +124,15 @@ def announce_sensor(self, e):
124124
125125 (b , _ ) = self .agent .request_response (
126126 self .agent .make_url (a .AGENT_DISCOVERY_URL ), "PUT" , d )
127- if not b :
128- l .error ("Cannot announce sensor. Scheduling retry." )
129- self .schedule_retry (self .announce_sensor , e , "announce" )
130- return False
131- else :
127+ if b :
132128 self .agent .set_from (b )
133129 self .fsm .ready ()
134- l .warn ("Host agent available. We're in business. ( Announced pid: %i)" % p .pid )
130+ l .warn ("Host agent available. We're in business. Announced pid: %i (true pid: %i )" % ( p .pid , self . agent . from_ . pid ) )
135131 return True
132+ else :
133+ l .error ("Cannot announce sensor. Scheduling retry." )
134+ self .schedule_retry (self .announce_sensor , e , "announce" )
135+ return False
136136
137137 def schedule_retry (self , fun , e , name ):
138138 l .debug ("Scheduling: " + name )
You can’t perform that action at this time.
0 commit comments