mirror of
https://github.com/paralus/paralus.git
synced 2026-08-24 15:47:19 +00:00
fix: defaulting type to SYSTEM for group APIs
Signed-off-by: sharan <sharanrdude@gmail.com>
This commit is contained in:
@@ -30,6 +30,9 @@ func updateGroupStatus(req *userpbv3.Group, resp *userpbv3.Group, err error) *us
|
||||
}
|
||||
return req
|
||||
}
|
||||
if req.Spec.Type == "" {
|
||||
req.Spec.Type = "SYSTEM"
|
||||
}
|
||||
resp.Status = &v3.Status{ConditionStatus: v3.ConditionStatus_StatusOK}
|
||||
return resp
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user