-
Notifications
You must be signed in to change notification settings - Fork 334
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
Fixed mismatch assignment error #613
Fixed mismatch assignment error #613
Conversation
@Spacebjorn Line306 should not be consistent with the change here! Thank you very much!
|
…/github.com/Spacebjorn/azure into feature/azure_rm_roleassignment_conditional
@Fred-sun Should be fixed for both lines now. Good catch |
@Spacebjorn |
@paultaiton I would've thought the integration tests would run as prereq before merging as well? |
@Fred-sun Not to be rude, but is there any status on this PR? It doesn't change that much and the task is still broken if you rerun it |
@Spacebjorn LGTM |
SUMMARY
ISSUE TYPE
COMPONENT NAME
azure_rm_roleassignment.py
ADDITIONAL INFORMATION
Errpr code: "msg": "State Mismatch Error: The assignment name exists, but does not match the provided role"
Changing the fatal message to print the elif comparison statement will show:
Error code: "msg": "role_assignment.get(): b7e6dc6d-f1e8-4753-8033-0f276bb0955b self.role_definition_id: b"
After my suggested change the code will actually do a proper comparison ending up with:
"msg": "role_assignment.get(): b7e6dc6d-f1e8-4753-8033-0f276bb0955b self.role_definition_id: b7e6dc6d-f1e8-4753-8033-0f276bb0955b"
Trying to rerun the code below will result in the error saying there's a mismatch between the roles even though a azure.azcollection.azure_rm_roleassignment_info task to the role will show they're the exact same.