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:
parent
a266ba1d6e
commit
dd9c86dfc0
6 changed files with 19 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue