catch error
[ZITADOPER-5]
This commit is contained in:
@@ -220,8 +220,8 @@ func (wr *wrappedOrganizationReconciler) reconcileInitialAdmin(ctx context.Conte
|
||||
"IAM_OWNER",
|
||||
},
|
||||
}); err != nil {
|
||||
if !strings.Contains(err.Error(), "RolesNotChanged") && !strings.Contains(err.Error(), "AlreadyExists") {
|
||||
return fmt.Errorf("Error adding org member: %v", err)
|
||||
if !strings.Contains(err.Error(), "Roles have not been changed") && !strings.Contains(err.Error(), "AlreadyExists") {
|
||||
return fmt.Errorf("Error adding iam member: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -232,8 +232,8 @@ func (wr *wrappedOrganizationReconciler) reconcileInitialAdmin(ctx context.Conte
|
||||
"IAM_OWNER",
|
||||
},
|
||||
}); err != nil {
|
||||
if !strings.Contains(err.Error(), "RolesNotChanged") {
|
||||
return fmt.Errorf("Error updating org member: %v", err)
|
||||
if !strings.Contains(err.Error(), "Roles have not been changed") {
|
||||
return fmt.Errorf("Error updating iam member: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user