mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-22 04:40:42 +00:00
fix: add classification for roles argument specs file (#235)
This commit is contained in:
parent
dde7eae3b8
commit
b0271ef29b
@ -195,8 +195,10 @@ class Candidate(object):
|
|||||||
return GroupVars(filename, settings, standards)
|
return GroupVars(filename, settings, standards)
|
||||||
if "host_vars" in filename.split(os.sep):
|
if "host_vars" in filename.split(os.sep):
|
||||||
return HostVars(filename, settings, standards)
|
return HostVars(filename, settings, standards)
|
||||||
if parentdir in ["meta"]:
|
if parentdir in ["meta"] and "main" in basename:
|
||||||
return Meta(filename, settings, standards)
|
return Meta(filename, settings, standards)
|
||||||
|
if parentdir in ["meta"] and "argument_specs" in basename:
|
||||||
|
return ArgumentSpecs(filename, settings, standards)
|
||||||
if (
|
if (
|
||||||
parentdir in ["library", "lookup_plugins", "callback_plugins", "filter_plugins"]
|
parentdir in ["library", "lookup_plugins", "callback_plugins", "filter_plugins"]
|
||||||
or filename.endswith(".py")
|
or filename.endswith(".py")
|
||||||
@ -312,6 +314,12 @@ class Meta(RoleFile):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class ArgumentSpecs(RoleFile):
|
||||||
|
"""Object classified as Ansible roles argument specs file."""
|
||||||
|
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class Inventory(Unversioned):
|
class Inventory(Unversioned):
|
||||||
"""Object classified as Ansible inventory file."""
|
"""Object classified as Ansible inventory file."""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user