Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cfengine_cli/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def _lint_promise_guard(
"""Check that a promise type guard (e.g. `vars:`) for deprecation or unknown type."""
assert _text(node) and len(_text(node)) > 1 and _text(node)[-1] == ":"
promise_type = _text(node)[0:-1]
if promise_type in syntax_data.DEPRECATED_PROMISE_TYPES:
if state.strict and promise_type in syntax_data.DEPRECATED_PROMISE_TYPES:
raise ValidationError(
f"Deprecation: Promise type '{promise_type}' is deprecated {location}",
node,
Expand Down
Loading