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