File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,8 @@ func (a *awsInstance) updateServices(api *ec2.Client) (err error) {
249
249
var sn string
250
250
sn , err = a .serviceNameFromEC2 (i )
251
251
if err != nil {
252
+ a .logErrorf ("unable to retrieve service name for the instance %s" , * i .InstanceId )
253
+
252
254
continue
253
255
}
254
256
// creating empty service in case it isn't there
@@ -262,6 +264,13 @@ func (a *awsInstance) updateServices(api *ec2.Client) (err error) {
262
264
}
263
265
}
264
266
instanceID := aws .ToString (i .InstanceId )
267
+
268
+ if _ , portErr := mapService [sn ].instancePortFromEC2 (i ); portErr != nil {
269
+ a .logErrorf ("unable to retrieve service port for the instance %s" , * i .InstanceId )
270
+
271
+ continue
272
+ }
273
+
265
274
mapService [sn ].instances [instanceID ] = i
266
275
}
267
276
}
You can’t perform that action at this time.
0 commit comments