-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In zms-cli, the create_admin_role seems to be required to set it. #2187
Comments
The link you've provided for line 2385 is for add-tenancy and not for add-provider-resource-group-roles and in the add-tenancy we're correctly handling it as optional on line 709. We have the same comment for add-provider-resource-group-roles on line 2468 but I think the problem there is the comment. But unlike add-tenancy, that argument cannot be optional since it's not the last argument:
|
Thank you for your clarification. I understand that the |
sure, you can easily add the necessary logic when parsing that command. it's a boolean argument and the rest of the remaining arguments must be in the form of role=action. So if the argument is either "true" or "false" then you can assume it's the value for the create_admin_role argument, otherwise treat it as one of the role=action values and process as such. |
When performing putProviderResourceGroupRoles, createAdminRole is optional on the ZMS server.
athenz/core/zms/src/main/rdl/Tenancy.rdli
Line 37 in 7568b4a
It appears to be optional in zmc-cli, but in reality, it seems to be required to set it.
athenz/libs/go/zmscli/cli.go
Line 2385 in 7568b4a
athenz/libs/go/zmscli/cli.go
Lines 739 to 746 in 7568b4a
The text was updated successfully, but these errors were encountered: