From c5b8196ff1b9569b2921cffc6479829d552be4d1 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 16 Jun 2017 00:51:26 -0500 Subject: [PATCH] Do not set default value for any_errors_fatal in Base Setting default values for FieldAttribute values created in the Base class prevents the _get_parent_attribute() code from working correctly, as the value is always non-None. Related to #22924 --- lib/ansible/playbook/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py index d1b712f5fb1..07236a0f063 100644 --- a/lib/ansible/playbook/base.py +++ b/lib/ansible/playbook/base.py @@ -163,7 +163,7 @@ class Base(with_metaclass(BaseMeta, object)): _run_once = FieldAttribute(isa='bool') _ignore_errors = FieldAttribute(isa='bool') _check_mode = FieldAttribute(isa='bool') - _any_errors_fatal = FieldAttribute(isa='bool', default=False, always_post_validate=True) + _any_errors_fatal = FieldAttribute(isa='bool', always_post_validate=True) # param names which have been deprecated/removed DEPRECATED_ATTRIBUTES = [