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

vmware_deploy_ovf: Fix the issue that the name variable referenced error occurs #499

Merged
merged 3 commits into from
Nov 14, 2020

Conversation

sky-joker
Copy link
Collaborator

SUMMARY

The vmware_deploy_ovf module occurs the name variable referenced error when the check mode.
This PR is to fix the above issue.

fixes: #497

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

plugins/modules/vmware_deploy_ovf.py

ADDITIONAL INFORMATION

tested on vCenter/ESXi 7.0

@sky-joker sky-joker changed the title [WIP] vmware_deploy_ovf: Fix the issue that the name variable referenced error occurs vmware_deploy_ovf: Fix the issue that the name variable referenced error occurs Nov 13, 2020
@@ -0,0 +1,2 @@
bugfixes:
- vmware_deploy_ovf - fixed the issue that the name variable referenced error occurs when the check mode (https://github.com/ansible-collections/community.vmware/pull/499).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- vmware_deploy_ovf - fixed the issue that the name variable referenced error occurs when the check mode (https://github.com/ansible-collections/community.vmware/pull/499).
- vmware_deploy_ovf - Fixed an UnboundLocalError for variable 'name' in check mode (https://github.com/ansible-collections/community.vmware/issues/497).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for reviewing!
The start seems we need to start with lowercase letters.
#461 (comment)

@mariolenz
Copy link
Collaborator

@sky-joker The bugfix looks good to me. But I've suggested an improvement to the changelog fragment. Can you please have a look at it?

@sky-joker
Copy link
Collaborator Author

@mariolenz
Done!

Copy link
Collaborator

@mariolenz mariolenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mariolenz mariolenz added the gate label Nov 14, 2020
@ansible-zuul ansible-zuul bot merged commit 619a5b2 into ansible-collections:main Nov 14, 2020
@sky-joker sky-joker deleted the fix_497 branch September 30, 2023 03:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

vmware_deploy_ovf UnboundLocalError: local variable 'name' referenced before assignment
2 participants