diff --git a/bin/get_roles.py b/bin/get_roles.py index 1ae6a18..565befe 100755 --- a/bin/get_roles.py +++ b/bin/get_roles.py @@ -34,6 +34,9 @@ def get_roles(append=[]): roles = copy(append) for sls in os.listdir('pillar/id'): + if sls == 'README.md': + continue + _roles = get_roles_of_one_minion(sls) for item in _roles: roles.append(item) diff --git a/bin/test_custom_grains.py b/bin/test_custom_grains.py index 23a2607..582e1a6 100755 --- a/bin/test_custom_grains.py +++ b/bin/test_custom_grains.py @@ -45,6 +45,9 @@ all_valid_localized_grains = get_all_valid_localized_grains() all_ids = sorted(os.listdir('pillar/id')) for sls in all_ids: + if sls == 'README.md': + continue + content = read_file_skip_jinja("pillar/id/%s" % sls) mygrains = yaml.safe_load(content)['grains'] diff --git a/bin/test_extension.sh b/bin/test_extension.sh index b70f9fc..af0f01d 100755 --- a/bin/test_extension.sh +++ b/bin/test_extension.sh @@ -1,6 +1,6 @@ #!/bin/bash -NON_SLS_PILLAR=$(find pillar -type f | egrep -v "(macros.jinja|(FORMULAS|valid_custom_grains)\.yaml|\.sls)$") +NON_SLS_PILLAR=$(find pillar -type f | egrep -v "(macros.jinja|(FORMULAS|valid_custom_grains)\.yaml|\.sls)$|/README\.md$") NON_SLS_SALT=$(find salt -type f | egrep -v "/(files|templates)/|(pillar\.example|\.sls)$") NON_SLS=( ${NON_SLS_PILLAR} ${NON_SLS_SALT} )