Skip to content
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

continious if one account has been activated, no need stop #55

Open
2 tasks done
ozbillwang opened this issue Sep 11, 2024 · 0 comments
Open
2 tasks done

continious if one account has been activated, no need stop #55

ozbillwang opened this issue Sep 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ozbillwang
Copy link

Welcome

Description of the problem

I have several groups to be activated, when use the option --prefix, it stopped in the middle

$ az-pim-cli activate group --prefix "User"
2024/09/11 11:37:15 Activating role 'Member' for group 'User-abc-1234' with reason 'config'
2024/09/11 11:37:33 The upstream API responded with status 400 Bad Request: {"error":{"code":"RoleAssignmentExists","message":"The Role assignment already exists."}}

Could we ignore the error, and move on the next group?

Currently I have to list all groups, then feed the command az-pim-cli activate group -n $group || echo ok in a for loop

Version of az-pim-cli

$ az-pim-cli version
az-pim-cli version (devel) (built with go1.22.4 from (e6d96fc864f0b8cb5bad5d53cceb6fa094937cd7, modified: false, mod sum: "") on 2024-07-01T13:58:57Z)

Configuration

$ export PIM_TOKEN=xxxx

$ az-pim-cli activate group --prefix "User"

Go environment

$ go version && go env
# paste output here

Output of command

# paste output here
# make sure to sensor any confidential output

Validation

  • Yes, I've included all information above (version, config, etc.).
@ozbillwang ozbillwang added the bug Something isn't working label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant