1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-24 04:39:15 +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

@ -226,10 +226,10 @@ class TemplateModule(OpenNebulaModule):
return None
def get_template_by_id(self, template_id, filter):
return self.get_template(lambda template: (template_id == template.ID), filter)
return self.get_template(lambda template: template_id == template.ID, filter)
def get_template_by_name(self, name, filter):
return self.get_template(lambda template: (name == template.NAME), filter)
return self.get_template(lambda template: name == template.NAME, filter)
def get_template_instance(self, requested_id, requested_name, filter):
if requested_id: