Fix strings contains
[ZITADOPER-1]
This commit is contained in:
@@ -618,7 +618,9 @@ func (r *ZitadelClusterReconciler) reconcileInitialHumanUser(ctx context.Context
|
||||
"ORG_OWNER",
|
||||
},
|
||||
}); err != nil {
|
||||
return ctrl.Result{}, fmt.Errorf("Error adding org member: %v", err)
|
||||
if !strings.Contains(err.Error(), "Errors.Org.Member.RolesNotChanged") {
|
||||
return ctrl.Result{}, fmt.Errorf("Error adding org member: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
@@ -641,7 +643,7 @@ func (r *ZitadelClusterReconciler) reconcileInitialHumanUser(ctx context.Context
|
||||
"ORG_OWNER",
|
||||
},
|
||||
}); err != nil {
|
||||
if strings.Contains(err.Error(), "Errors.Org.Member.RolesNotChanged"); err != nil {
|
||||
if !strings.Contains(err.Error(), "Errors.Org.Member.RolesNotChanged") {
|
||||
return ctrl.Result{}, fmt.Errorf("Error updating org member: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user