diff --git a/changelogs/fragments/46275-fix-_cond_not_supported_warn.yaml b/changelogs/fragments/46275-fix-_cond_not_supported_warn.yaml new file mode 100644 index 00000000000..942132d3811 --- /dev/null +++ b/changelogs/fragments/46275-fix-_cond_not_supported_warn.yaml @@ -0,0 +1,2 @@ +bugfixes: + - Fix for StrategyModule object has no attribute _cond_not_supported_warn (https://github.com/ansible/ansible/issues/46275) diff --git a/lib/ansible/plugins/strategy/__init__.py b/lib/ansible/plugins/strategy/__init__.py index 216bd7f98e1..a250e22c0a2 100644 --- a/lib/ansible/plugins/strategy/__init__.py +++ b/lib/ansible/plugins/strategy/__init__.py @@ -943,6 +943,9 @@ class StrategyBase: return ret + def _cond_not_supported_warn(self, task_name): + display.warning("%s task does not support when conditional" % task_name) + def _execute_meta(self, task, play_context, iterator, target_host): # meta tasks store their args in the _raw_params field of args,