-
Notifications
You must be signed in to change notification settings - Fork 23.8k
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
VMware: vsphere_copy IndexError: tuple index out of range #58170
Conversation
This most likely requires a proper fix, as the error should be caught as part of https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vsphere_copy.py#L193-L203 |
consecutive reruns of this module after a failure tend to result in the following
which i would understand is what is being referenced in https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/cloud/vmware/vsphere_copy.py#L197 ? |
@@ -206,7 +206,7 @@ def main(): | |||
try: | |||
if isinstance(e[0], int): | |||
error_code = e[0] | |||
except (KeyError, TypeError): | |||
except (KeyError, TypeError, IndexError): |
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.
I warned for this, the catchall Exception above is the wrong approach.
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.
@dagwieers I am totally agree with you. @lijok Could you please do the needful, thanks.
Looked at this during PR review day
I propose that this be closed and remaining work is tracked via issue #58168 |
SUMMARY
hotfixes #58168
ISSUE TYPE
COMPONENT NAME
vsphere_copy
ADDITIONAL INFORMATION
before:
after: