|
|
@ -41,7 +41,7 @@ class RoleMetadata(Base, CollectionSearch):
|
|
|
|
|
|
|
|
|
|
|
|
allow_duplicates = NonInheritableFieldAttribute(isa='bool', default=False)
|
|
|
|
allow_duplicates = NonInheritableFieldAttribute(isa='bool', default=False)
|
|
|
|
dependencies = NonInheritableFieldAttribute(isa='list', default=list)
|
|
|
|
dependencies = NonInheritableFieldAttribute(isa='list', default=list)
|
|
|
|
galaxy_info = NonInheritableFieldAttribute(isa='GalaxyInfo')
|
|
|
|
galaxy_info = NonInheritableFieldAttribute(isa='dict')
|
|
|
|
argument_specs = NonInheritableFieldAttribute(isa='dict', default=dict)
|
|
|
|
argument_specs = NonInheritableFieldAttribute(isa='dict', default=dict)
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, owner=None):
|
|
|
|
def __init__(self, owner=None):
|
|
|
@ -110,15 +110,6 @@ class RoleMetadata(Base, CollectionSearch):
|
|
|
|
except AssertionError as e:
|
|
|
|
except AssertionError as e:
|
|
|
|
raise AnsibleParserError("A malformed list of role dependencies was encountered.", obj=self._ds, orig_exc=e)
|
|
|
|
raise AnsibleParserError("A malformed list of role dependencies was encountered.", obj=self._ds, orig_exc=e)
|
|
|
|
|
|
|
|
|
|
|
|
def _load_galaxy_info(self, attr, ds):
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
This is a helper loading function for the galaxy info entry
|
|
|
|
|
|
|
|
in the metadata, which returns a GalaxyInfo object rather than
|
|
|
|
|
|
|
|
a simple dictionary.
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ds
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def serialize(self):
|
|
|
|
def serialize(self):
|
|
|
|
return dict(
|
|
|
|
return dict(
|
|
|
|
allow_duplicates=self._allow_duplicates,
|
|
|
|
allow_duplicates=self._allow_duplicates,
|
|
|
|