Skip to content

Commit

Permalink
chore: add __repr__ to App
Browse files Browse the repository at this point in the history
  • Loading branch information
uptickmetachu committed Oct 10, 2024
1 parent 743abaa commit bc0a0a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gitops/common/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def __eq__(self, other: object) -> bool:
and json.dumps(self.values, sort_keys=True) == json.dumps(other.values, sort_keys=True)
)

def __repr__(self) -> str:
return f"App(name={self.name}, cluster={self.cluster}, tags={self.tags})"

def is_inactive(self) -> bool:
return "inactive" in self.values.get("tags", [])

Expand Down

0 comments on commit bc0a0a1

Please sign in to comment.