diff options
author | Brian Coca <bcoca@users.noreply.github.com> | 2019-02-04 17:16:32 -0500 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2019-02-04 14:16:32 -0800 |
commit | 7589d496fc719c13945262d3a231260fa11f0d17 (patch) | |
tree | 4a92f4e4146df7ea6b6d4b14ffda0988a6d00dc9 /lib/ansible/playbook | |
parent | bdf7f42b7c879c592a3c5fe7fd01fde12e178b2e (diff) | |
download | ansible-7589d496fc719c13945262d3a231260fa11f0d17.tar.gz |
remove default from delegate_facts to inherit (#45492) (#51553)
* remove default from delegate_facts to inherit (#45492)
* remove default from delegate_facts to inherit
fixes #45456
* test delegate_facts
* added note about inheritance and defaults
* yamllint
(cherry picked from commit 8743e6ae2ee7aa3ae94038554110a9255f5d8fd8)
* added changelog
Diffstat (limited to 'lib/ansible/playbook')
-rw-r--r-- | lib/ansible/playbook/block.py | 2 | ||||
-rw-r--r-- | lib/ansible/playbook/role/__init__.py | 2 | ||||
-rw-r--r-- | lib/ansible/playbook/task.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/ansible/playbook/block.py b/lib/ansible/playbook/block.py index 18b89ca3a8..50483a9a48 100644 --- a/lib/ansible/playbook/block.py +++ b/lib/ansible/playbook/block.py @@ -38,7 +38,7 @@ class Block(Base, Become, Conditional, Taggable): # other fields _delegate_to = FieldAttribute(isa='string') - _delegate_facts = FieldAttribute(isa='bool', default=False) + _delegate_facts = FieldAttribute(isa='bool') # for future consideration? this would be functionally # similar to the 'else' clause for exceptions diff --git a/lib/ansible/playbook/role/__init__.py b/lib/ansible/playbook/role/__init__.py index 94fba1c2e1..32b3b084c0 100644 --- a/lib/ansible/playbook/role/__init__.py +++ b/lib/ansible/playbook/role/__init__.py @@ -94,7 +94,7 @@ def hash_params(params): class Role(Base, Become, Conditional, Taggable): _delegate_to = FieldAttribute(isa='string') - _delegate_facts = FieldAttribute(isa='bool', default=False) + _delegate_facts = FieldAttribute(isa='bool') def __init__(self, play=None, from_files=None, from_include=False): self._role_name = None diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index 57a9692336..9f715c43ad 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -73,7 +73,7 @@ class Task(Base, Conditional, Taggable, Become): _changed_when = FieldAttribute(isa='list', default=list) _delay = FieldAttribute(isa='int', default=5) _delegate_to = FieldAttribute(isa='string') - _delegate_facts = FieldAttribute(isa='bool', default=False) + _delegate_facts = FieldAttribute(isa='bool') _failed_when = FieldAttribute(isa='list', default=list) _loop = FieldAttribute() _loop_control = FieldAttribute(isa='class', class_type=LoopControl, inherit=False) |