1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins/modules/cloud/opennebula
patchback[bot] 739719a3b1
opennebula: fix error message when renaming an image (#3626) (#3650)
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.

(cherry picked from commit b429c520f5)

Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
2021-10-31 18:50:20 +01:00
..
one_host.py mass-added the utf-8 marker (#3163) (#3170) 2021-08-08 11:48:54 +02:00
one_image.py opennebula: fix error message when renaming an image (#3626) (#3650) 2021-10-31 18:50:20 +01:00
one_image_info.py Remove deprecated modules scheduled for removal in 3.0.0 (#1924) 2021-04-13 11:19:25 +00:00
one_service.py Tidy up validate-modules:no-default-for-required-parameter and other cases (#1423) 2020-12-01 21:28:40 +01:00
one_template.py [PR #3194/1fec1d0c backport][stable-3] Fix sanity failures (#3195) 2021-08-12 13:46:55 +02:00
one_vm.py OpenNebula one_vm.py: Fix missing keys (#2435) (#2447) 2021-05-04 12:43:25 +02:00