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
Update na_elementsw_access_group.py #57513
Conversation
account_id was not being passed correctly with username. String can now be passed and will return correctly.
@@ -216,8 +216,8 @@ def get_account_id(self): | |||
# Validate account id | |||
# Return account_id if found, None otherwise | |||
try: | |||
account_id = self.elementsw_helper.account_exists(self.account_id) | |||
return account_id | |||
self.account_id = self.elementsw_helper.account_exists(self.account_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is really in line 233
volume_id = self.elementsw_helper.volume_exists(volume, self.account_id)
it should be
volume_id = self.elementsw_helper.volume_exists(volume, self.account_id_valid)
as we are trying to preserver self.account_id for an error message. We want to preserve the original value.
(I agree it's a bit confusing as written, and could be better to use a new name for the original value)
Duplicate of #60887 |
Thank you very much for your interest in Ansible. Ansible has migrated much of the content into separate repositories to allow for more rapid, independent development. We are closing this issue/PR because this content has been moved to one or more collection repositories.
For further information, please see: |
SUMMARY
account_id was not being passed correctly with username. String can now be passed and will return correctly.
ISSUE TYPE
COMPONENT NAME
na_elementsw_access_group
ADDITIONAL INFORMATION