From bc0a0a1cd65bd215bba35f0a50b746b8f72bfa5d Mon Sep 17 00:00:00 2001 From: William Chu Date: Fri, 11 Oct 2024 10:29:02 +1100 Subject: [PATCH] chore: add __repr__ to App --- gitops/common/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gitops/common/app.py b/gitops/common/app.py index 8e00094..df95fb8 100644 --- a/gitops/common/app.py +++ b/gitops/common/app.py @@ -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", [])