diff --git a/utils/utils.go b/utils/utils.go index 0292bd68..0de0cd47 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -57,7 +57,11 @@ func GetInstancesInSecurityGroup(ctx context.Context, client *v2.Client, securit return nil }) if err != nil { - return nil, err + if allInstances == nil { + return nil, err + } else { + fmt.Printf("error while listing instances in security group: %s", err) + } } var instancesInSG []*v2.Instance