Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: yaroslavborbat <[email protected]>
  • Loading branch information
yaroslavborbat committed Dec 12, 2024
1 parent 19e8b91 commit 2cb8460
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hooks/mc-labeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ def generate_config(self) -> dict:
},
]
}


def reconcile(self) -> Callable[[hook.Context], None]:
def r(ctx: hook.Context):
labels: dict = [s["filterResult"]["labels"] for s in ctx.snapshots.get(self.SNAPSHOT_NAME, [])]
if labels.get(self.LABEL) == self.module_name:
if labels.get(self.LABEL, "") == self.module_name:
return

ctx.kubernetes.merge_patch(
Expand Down

0 comments on commit 2cb8460

Please sign in to comment.