mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
[PR #11465/24098cd6 backport][stable-12] Reformat code (#11466)
Reformat code (#11465)
Reformat code.
(cherry picked from commit 24098cd638)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -467,10 +467,10 @@ class ImageModule(OpenNebulaModule):
|
||||
return None
|
||||
|
||||
def get_image_by_name(self, image_name):
|
||||
return self.get_image(lambda image: (image_name == image.NAME))
|
||||
return self.get_image(lambda image: image_name == image.NAME)
|
||||
|
||||
def get_image_by_id(self, image_id):
|
||||
return self.get_image(lambda image: (image_id == image.ID))
|
||||
return self.get_image(lambda image: image_id == image.ID)
|
||||
|
||||
def get_image_instance(self, requested_id, requested_name):
|
||||
# Using 'if requested_id:' doesn't work properly when requested_id=0
|
||||
|
||||
Reference in New Issue
Block a user