-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
proxmox module_utils: fix get_vm int parse handling #4945
Conversation
Thanks for your contribution! I'm wondering why |
@felixfontein thanks for your reply.
maybe yes. If fix caller, affected code is below (proxmox_kvm)
|
But this error happens only because an invalid value is passed to this function, which shouldn't have happened in the first place. |
(This fix could mask other errors in other uses of this function, since it is a generic utility function that is used by multiple modules, potentially even ones outside of this repository.) |
thanks. |
This reverts commit db2aac4.
fix on module source code. |
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
The change looks good, it still needs a changelog fragment though. |
Co-authored-by: Felix Fontein <felix@fontein.de>
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.
LGTM. If nobody complains, I'll merge this for the next release :)
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.
LGTM
SUMMARY
When target vm is not exist and get vm by only target vm name, proxmox module raise int parse error.
This PR fix only pattern of vmid is None.
I did't implement other pattern because I guess vmid is only int or None.
Closes #4944
ISSUE TYPE
COMPONENT NAME
proxmox
ADDITIONAL INFORMATION