Skip to content

Commit

Permalink
Change format according to linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Muresan,Bogdan,CH-Lausanne authored and bogdanmuresan committed Aug 6, 2024
1 parent 6a3c083 commit d64d6f9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions plugins/lookup/controller_object_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,7 @@ def run(self, terms, variables=None, **kwargs):
item.update({"organizations": [item[item["resource_type"]]]})
if item["resource_type"] == "instance_group":
item.update({"instance_groups": [item[item["resource_type"]]]})
item.update({"role": item["name"].lower()
.replace(" ", "_")
.replace("ad_hoc", "adhoc")
.replace("approve", "approval")
})
item.update({"role": item["name"].lower().replace(" ", "_").replace("ad_hoc", "adhoc").replace("approve", "approval")})
# Remove the extra fields
item.pop("users")
item.pop("teams")
Expand Down

0 comments on commit d64d6f9

Please sign in to comment.