Check length of deleteRoles
[ZITADOPER-1]
This commit is contained in:
@@ -207,7 +207,7 @@ func (wr *wrappedProjectReconciler) reconcileRoles(ctx context.Context, ztdClien
|
||||
}
|
||||
}
|
||||
|
||||
if deleteRoles != nil {
|
||||
if len(deleteRoles) > 0 {
|
||||
for _, dRole := range deleteRoles {
|
||||
if _, err = ztdClient.RemoveProjectRole(middleware.SetOrgID(ctx, org.Status.OrgId), &pb.RemoveProjectRoleRequest{
|
||||
ProjectId: wr.project.Status.ProjectId,
|
||||
|
||||
Reference in New Issue
Block a user