1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-04-16 17:01:30 +00:00

Reformat code (#11465)

Reformat code.
This commit is contained in:
Felix Fontein 2026-02-04 07:50:05 +01:00 committed by GitHub
parent 95b24ac3fe
commit 24098cd638
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: