-
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
one_vm: fix for 'NoneType' object has no attribute 'split' in get_vm_labels_and_attributes_dict #5489
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.
Thanks for your contribution! Can you please add a changelog fragment? Thanks!
Added changelog |
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Felix Fontein <[email protected]>
Can you fix the line endings in the changelog fragment (Windows style → Unix style)? |
Okay, made it |
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #5512 🤖 @patchback |
…labels_and_attributes_dict (#5489) * Fix for 'NoneType' object has no attribute 'split' * Added changelog to fix * Update changelogs/fragments/5489-nonetype-in-get-vm-by-label.yml Co-authored-by: Felix Fontein <[email protected]> * Fix line ending in changelog Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 621fb6a)
Backport to stable-6: 💚 backport PR created✅ Backport PR branch: Backported as #5513 🤖 @patchback |
@d34d5p4rr0w thanks for fixing this! |
…labels_and_attributes_dict (#5489) * Fix for 'NoneType' object has no attribute 'split' * Added changelog to fix * Update changelogs/fragments/5489-nonetype-in-get-vm-by-label.yml Co-authored-by: Felix Fontein <[email protected]> * Fix line ending in changelog Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 621fb6a)
…labels_and_attributes_dict (#5489) (#5513) * Fix for 'NoneType' object has no attribute 'split' * Added changelog to fix * Update changelogs/fragments/5489-nonetype-in-get-vm-by-label.yml Co-authored-by: Felix Fontein <[email protected]> * Fix line ending in changelog Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 621fb6a) Co-authored-by: wh1t3 r4bb1t <[email protected]>
…labels_and_attributes_dict (#5489) (#5512) * Fix for 'NoneType' object has no attribute 'split' * Added changelog to fix * Update changelogs/fragments/5489-nonetype-in-get-vm-by-label.yml Co-authored-by: Felix Fontein <[email protected]> * Fix line ending in changelog Co-authored-by: Felix Fontein <[email protected]> (cherry picked from commit 621fb6a) Co-authored-by: wh1t3 r4bb1t <[email protected]>
…labels_and_attributes_dict (ansible-collections#5489) * Fix for 'NoneType' object has no attribute 'split' * Added changelog to fix * Update changelogs/fragments/5489-nonetype-in-get-vm-by-label.yml Co-authored-by: Felix Fontein <[email protected]> * Fix line ending in changelog Co-authored-by: Felix Fontein <[email protected]>
SUMMARY
Got a bug with NoneTypee when parsing VM's list, create small fix for this
'NoneType' object has no attribute 'split'
ISSUE TYPE
COMPONENT NAME
community.general.one_vm.py
ADDITIONAL INFORMATION
VM without labels and caused an exception in function
get_vm_labels_and_attributes_dict
AttributeError: 'NoneType' object has no attribute 'split'
After fix everything is fine