mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 22:30:42 +00:00
use equal match for inventory file classification
This commit is contained in:
parent
4c6c5c9120
commit
60e4694e7f
@ -310,7 +310,7 @@ def classify(filename, settings={}, standards=[]):
|
||||
if parentdir in ["library", "lookup_plugins", "callback_plugins",
|
||||
"filter_plugins"] or filename.endswith(".py"):
|
||||
return Code(filename, settings, standards)
|
||||
if "inventory" in basename or "hosts" in basename or parentdir in ["inventory"]:
|
||||
if "inventory" == basename or "hosts" == basename or parentdir in ["inventories"]:
|
||||
return Inventory(filename, settings, standards)
|
||||
if "rolesfile" in basename or "requirements" in basename:
|
||||
return Rolesfile(filename, settings, standards)
|
||||
|
4
setup.py
4
setup.py
@ -18,9 +18,9 @@ def get_property(prop, project):
|
||||
return result.group(1)
|
||||
|
||||
|
||||
def get_readme(filename='README.md'):
|
||||
def get_readme(filename="README.md"):
|
||||
this = os.path.abspath(os.path.dirname(__file__))
|
||||
with io.open(os.path.join(this, filename), encoding='utf-8') as f:
|
||||
with io.open(os.path.join(this, filename), encoding="utf-8") as f:
|
||||
long_description = f.read()
|
||||
return long_description
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user