summaryrefslogtreecommitdiff
path: root/lib/ansible
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2017-12-04 10:46:46 -0500
committerBrian Coca <bcoca@users.noreply.github.com>2017-12-11 18:20:04 -0500
commit0d35a69f0eea191f423ba6b0120ffffcbd6d9ed1 (patch)
tree8918ce12688cdf3794626073d24bd0b3a60b51b4 /lib/ansible
parenta57d6a4206e045ea69b979a93c814eeeaaed3b4d (diff)
downloadansible-0d35a69f0eea191f423ba6b0120ffffcbd6d9ed1.tar.gz
normalize names
Diffstat (limited to 'lib/ansible')
-rw-r--r--lib/ansible/playbook/base.py2
-rw-r--r--lib/ansible/playbook/block.py1
-rw-r--r--lib/ansible/playbook/play.py1
-rw-r--r--lib/ansible/playbook/playbook_include.py1
-rw-r--r--lib/ansible/playbook/task.py1
5 files changed, 2 insertions, 4 deletions
diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py
index 26c9215743..878db4820b 100644
--- a/lib/ansible/playbook/base.py
+++ b/lib/ansible/playbook/base.py
@@ -141,6 +141,8 @@ class BaseMeta(type):
class Base(with_metaclass(BaseMeta, object)):
+ _name = FieldAttribute(isa='string', default='', always_post_validate=True, inherit=False)
+
# connection/transport
_connection = FieldAttribute(isa='string')
_port = FieldAttribute(isa='int')
diff --git a/lib/ansible/playbook/block.py b/lib/ansible/playbook/block.py
index 7dc0cf3e98..b34df9f21c 100644
--- a/lib/ansible/playbook/block.py
+++ b/lib/ansible/playbook/block.py
@@ -39,7 +39,6 @@ class Block(Base, Become, Conditional, Taggable):
# other fields
_delegate_to = FieldAttribute(isa='string')
_delegate_facts = FieldAttribute(isa='bool', default=False)
- _name = FieldAttribute(isa='string', default='')
# for future consideration? this would be functionally
# similar to the 'else' clause for exceptions
diff --git a/lib/ansible/playbook/play.py b/lib/ansible/playbook/play.py
index 885b5fc3ea..e88667480d 100644
--- a/lib/ansible/playbook/play.py
+++ b/lib/ansible/playbook/play.py
@@ -54,7 +54,6 @@ class Play(Base, Taggable, Become):
"""
# =================================================================================
- _name = FieldAttribute(isa='string', default='', always_post_validate=True)
_hosts = FieldAttribute(isa='list', required=True, listof=string_types, always_post_validate=True)
# Facts
diff --git a/lib/ansible/playbook/playbook_include.py b/lib/ansible/playbook/playbook_include.py
index 1107ac83c2..54ca63f36f 100644
--- a/lib/ansible/playbook/playbook_include.py
+++ b/lib/ansible/playbook/playbook_include.py
@@ -34,7 +34,6 @@ from ansible.template import Templar
class PlaybookInclude(Base, Conditional, Taggable):
- _name = FieldAttribute(isa='string')
_import_playbook = FieldAttribute(isa='string')
_vars = FieldAttribute(isa='dict', default=dict())
diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py
index b00c638b32..a0156e1937 100644
--- a/lib/ansible/playbook/task.py
+++ b/lib/ansible/playbook/task.py
@@ -77,7 +77,6 @@ class Task(Base, Conditional, Taggable, Become):
_failed_when = FieldAttribute(isa='list', default=[])
_loop = FieldAttribute()
_loop_control = FieldAttribute(isa='class', class_type=LoopControl, inherit=False)
- _name = FieldAttribute(isa='string', default='')
_notify = FieldAttribute(isa='list')
_poll = FieldAttribute(isa='int', default=10)
_register = FieldAttribute(isa='string')