normalize names
This commit is contained in:
parent
a57d6a4206
commit
0d35a69f0e
5 changed files with 2 additions and 4 deletions
|
@ -141,6 +141,8 @@ class BaseMeta(type):
|
||||||
|
|
||||||
class Base(with_metaclass(BaseMeta, object)):
|
class Base(with_metaclass(BaseMeta, object)):
|
||||||
|
|
||||||
|
_name = FieldAttribute(isa='string', default='', always_post_validate=True, inherit=False)
|
||||||
|
|
||||||
# connection/transport
|
# connection/transport
|
||||||
_connection = FieldAttribute(isa='string')
|
_connection = FieldAttribute(isa='string')
|
||||||
_port = FieldAttribute(isa='int')
|
_port = FieldAttribute(isa='int')
|
||||||
|
|
|
@ -39,7 +39,6 @@ class Block(Base, Become, Conditional, Taggable):
|
||||||
# other fields
|
# other fields
|
||||||
_delegate_to = FieldAttribute(isa='string')
|
_delegate_to = FieldAttribute(isa='string')
|
||||||
_delegate_facts = FieldAttribute(isa='bool', default=False)
|
_delegate_facts = FieldAttribute(isa='bool', default=False)
|
||||||
_name = FieldAttribute(isa='string', default='')
|
|
||||||
|
|
||||||
# for future consideration? this would be functionally
|
# for future consideration? this would be functionally
|
||||||
# similar to the 'else' clause for exceptions
|
# similar to the 'else' clause for exceptions
|
||||||
|
|
|
@ -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)
|
_hosts = FieldAttribute(isa='list', required=True, listof=string_types, always_post_validate=True)
|
||||||
|
|
||||||
# Facts
|
# Facts
|
||||||
|
|
|
@ -34,7 +34,6 @@ from ansible.template import Templar
|
||||||
|
|
||||||
class PlaybookInclude(Base, Conditional, Taggable):
|
class PlaybookInclude(Base, Conditional, Taggable):
|
||||||
|
|
||||||
_name = FieldAttribute(isa='string')
|
|
||||||
_import_playbook = FieldAttribute(isa='string')
|
_import_playbook = FieldAttribute(isa='string')
|
||||||
_vars = FieldAttribute(isa='dict', default=dict())
|
_vars = FieldAttribute(isa='dict', default=dict())
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,6 @@ class Task(Base, Conditional, Taggable, Become):
|
||||||
_failed_when = FieldAttribute(isa='list', default=[])
|
_failed_when = FieldAttribute(isa='list', default=[])
|
||||||
_loop = FieldAttribute()
|
_loop = FieldAttribute()
|
||||||
_loop_control = FieldAttribute(isa='class', class_type=LoopControl, inherit=False)
|
_loop_control = FieldAttribute(isa='class', class_type=LoopControl, inherit=False)
|
||||||
_name = FieldAttribute(isa='string', default='')
|
|
||||||
_notify = FieldAttribute(isa='list')
|
_notify = FieldAttribute(isa='list')
|
||||||
_poll = FieldAttribute(isa='int', default=10)
|
_poll = FieldAttribute(isa='int', default=10)
|
||||||
_register = FieldAttribute(isa='string')
|
_register = FieldAttribute(isa='string')
|
||||||
|
|
Loading…
Reference in a new issue