Skip to content

Commit

Permalink
style: formatting black
Browse files Browse the repository at this point in the history
  • Loading branch information
Nemental committed May 28, 2024
1 parent ee9ff4d commit 65c5a7c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions plugins/modules/grafana_contact_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,7 +1052,11 @@ def grafana_update_contact_point(self, data, payload):
del contact_point["provenance"]

if self.contact_point == contact_point:
return {"changed": False, "contact_point": contact_point, "state": data["state"]}
return {
"changed": False,
"contact_point": contact_point,
"state": data["state"],
}
else:
return {
"changed": True,
Expand All @@ -1074,7 +1078,11 @@ def grafana_delete_contact_point(self, data):
)

if info["status"] == 202:
return {"changed": True, "contact_point": self.contact_point, "state": data["state"]}
return {
"changed": True,
"contact_point": self.contact_point,
"state": data["state"],
}
elif info["status"] == 404:
return {"changed": False, "state": data["state"]}
else:
Expand Down

0 comments on commit 65c5a7c

Please sign in to comment.