Allow any_errors_fatal to be set in playbook - fixes #30691 (#30839)

* Allow any_errors_fatal to be set in playbook.
* Default to the config file value for any_errors_fatal only if it isn't already provided.
* add _get_attr method
This commit is contained in:
Sloane Hertel 2017-10-04 15:52:27 -04:00 committed by Toshio Kuratomi
parent f3f0ba87ce
commit aa658c64ec
2 changed files with 10 additions and 1 deletions

View file

@ -165,7 +165,7 @@ class Base(with_metaclass(BaseMeta, object)):
_ignore_errors = FieldAttribute(isa='bool')
_check_mode = FieldAttribute(isa='bool')
_diff = FieldAttribute(isa='bool')
_any_errors_fatal = FieldAttribute(isa='bool', default=C.ANY_ERRORS_FATAL, always_post_validate=True)
_any_errors_fatal = FieldAttribute(isa='bool')
# param names which have been deprecated/removed
DEPRECATED_ATTRIBUTES = [