File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -139,9 +139,15 @@ def __send_connected(self, eb: EventBus):
139
139
for key , val in self .probe_config ["spp" ].get ("probe_metadata" ).items ():
140
140
probe_metadata [key ] = val
141
141
142
+ # add probe auth headers (if present)
143
+ headers = {}
144
+ if self .probe_config ["spp" ].get ("authentication" ) is not None :
145
+ for key , val in self .probe_config ["spp" ].get ("authentication" ).items ():
146
+ headers [key ] = val
147
+
142
148
# send probe connected event
143
149
reply_address = str (uuid .uuid4 ())
144
- eb .send (address = "spp.platform.status.probe-connected" , body = {
150
+ eb .send (address = "spp.platform.status.probe-connected" , headers = headers , body = {
145
151
"instanceId" : self .probe_config ["spp" ]["probe_id" ],
146
152
"connectionTime" : round (time .time () * 1000 ),
147
153
"meta" : probe_metadata
You can’t perform that action at this time.
0 commit comments