mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
opennebula: fix error message when renaming an image (#3626)
While porting this module to make use of `pyone` I have overlooked one
attribute. Luckily the error only occurs when trying to rename an image
to a name that has already been taken.
Instead of telling the user which image ID already uses that name, the
module failed with the following error (along with a huge backtrace):
AttributeError: 'IMAGESub' object has no attribute 'id'
With this commit the error message is much more obvous again.
This commit is contained in:
2
changelogs/fragments/3626-fix-one_image-error.yml
Normal file
2
changelogs/fragments/3626-fix-one_image-error.yml
Normal file
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- one_image - fix error message when renaming an image (https://github.com/ansible-collections/community.general/pull/3626).
|
||||
Reference in New Issue
Block a user