1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-23 20:29:08 +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:
patchback[bot] 2026-02-04 09:04:00 +01:00 committed by GitHub
parent a266ba1d6e
commit dd9c86dfc0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 19 additions and 25 deletions

View file

@ -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