-
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: default value when checking for dict key #6838
proxmox: default value when checking for dict key #6838
Conversation
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.
Looks good to me. @UnderGreen what do you think?
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #6885 🤖 @patchback |
@russoz @UnderGreen thanks! |
* proxmox: default value when checking for dict key * add changelog frag (cherry picked from commit 49349fc)
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #6886 🤖 @patchback |
* proxmox: default value when checking for dict key * add changelog frag (cherry picked from commit 49349fc)
SUMMARY
Use
dict.get()
to return default value iftemplate
does not exist.Fixes #5372
ISSUE TYPE
COMPONENT NAME
proxmox