Skip to content

Commit

Permalink
Flip the boolean value for condition resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoVoges authored Oct 8, 2024
1 parent 839aa8f commit 89a065d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kapitan/inventory/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def parent_path(_parent_: Node):


def evaluate_bool(condition: str) -> bool:
return str(condition).lower() in ["false", "", "0", "none"]
return str(condition).lower() not in ["false", "", "0", "none"]


def condition_if(condition: str, config: dict):
Expand Down

0 comments on commit 89a065d

Please sign in to comment.