Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Muresan,Bogdan,CH-Lausanne committed Dec 12, 2023
1 parent 3edd611 commit b95fdb8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plugins/lookup/controller_object_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,11 @@ def run(self, terms, variables=None, **kwargs):
for compare_item in compare_list_reduced:
if self.equal_dicts(compare_item, item, "state"):
break
elif (("organization" in compare_item) # permission applies to all objects in orga
and (len(compare_item) == 3) # we only have orga, team/user, and role
and self.equal_dicts(compare_item, item, ["organization"] + list(item.keys() - compare_item.keys()))
):
elif (
("organization" in compare_item) # permission applies to all objects in orga
and (len(compare_item) == 3) # we only have orga, team/user, and role
and self.equal_dicts(compare_item, item, ["organization"] + list(item.keys() - compare_item.keys()))
):
break
else:
difference.append(item)
Expand Down

0 comments on commit b95fdb8

Please sign in to comment.