Skip to content

Commit

Permalink
Fix Linting issue
Browse files Browse the repository at this point in the history
Signed-off-by: rsuplina <[email protected]>
  • Loading branch information
rsuplina committed Jul 17, 2024
1 parent 9559e54 commit 3865fdd
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions plugins/modules/host_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,21 +204,25 @@ def process(self):
body = ApiHostTemplateList(items=[host_template_body])
if not self.module.check_mode:
host_temp_api_instance.create_host_templates(
cluster_name=self.cluster_name, body=body
)
cluster_name=self.cluster_name, body=body
)
self.changed = True

self.host_template_output = _parse_host_template_output(host_temp_api_instance.read_host_template(
cluster_name=self.cluster_name,
host_template_name=self.name,
).to_dict())
self.host_template_output = _parse_host_template_output(
host_temp_api_instance.read_host_template(
cluster_name=self.cluster_name,
host_template_name=self.name,
).to_dict()
)

if self.state == "absent":
if not self.module.check_mode:
self.host_template_output = _parse_host_template_output(host_temp_api_instance.delete_host_template(
cluster_name=self.cluster_name,
host_template_name=self.name,
).to_dict())
self.host_template_output = _parse_host_template_output(
host_temp_api_instance.delete_host_template(
cluster_name=self.cluster_name,
host_template_name=self.name,
).to_dict()
)
self.changed = True


Expand Down

0 comments on commit 3865fdd

Please sign in to comment.