From f8f0652b5d93cfea84fdc2aa21e1acba070e0bbd Mon Sep 17 00:00:00 2001 From: Ole Herman Schumacher Elgesem Date: Wed, 6 May 2026 14:30:48 +0200 Subject: [PATCH] cfengine lint: Moved deprecated promise check to strict mode Signed-off-by: Ole Herman Schumacher Elgesem --- src/cfengine_cli/lint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cfengine_cli/lint.py b/src/cfengine_cli/lint.py index 498eb3b..ab04702 100644 --- a/src/cfengine_cli/lint.py +++ b/src/cfengine_cli/lint.py @@ -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,