Use and instead of or
[ZITADOPER-5]
This commit is contained in:
@@ -224,7 +224,7 @@ func (wr *wrappedOrganizationReconciler) reconcileInitialAdmin(ctx context.Conte
|
||||
"IAM_OWNER",
|
||||
},
|
||||
}); err != nil {
|
||||
if !strings.Contains(err.Error(), "RolesNotChanged") || !strings.Contains(err.Error(), "AlreadyExists") {
|
||||
if !strings.Contains(err.Error(), "RolesNotChanged") && !strings.Contains(err.Error(), "AlreadyExists") {
|
||||
return fmt.Errorf("Error adding org member: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user