From 5c774c40cdc20868b91be3309df8edd6777c0884 Mon Sep 17 00:00:00 2001 From: Theo Chatzimichos Date: Nov 08 2017 22:03:32 +0000 Subject: fix bug in bin/test_roles.py it should iterate over the appropriate directory --- diff --git a/bin/test_roles.py b/bin/test_roles.py index f6b8c2d..e914277 100755 --- a/bin/test_roles.py +++ b/bin/test_roles.py @@ -24,7 +24,7 @@ all_roles = sorted(set(all_roles)) for directory in ['salt', 'pillar']: for sls in os.listdir('%s/role' % directory): if sls.endswith('.sls'): - with open('salt/role/%s' % sls) as f: + with open('%s/role/%s' % (directory, sls)) as f: if sls.split('.sls')[0] not in all_roles: print ('%s/role/%s not in roles' % (directory, sls)) status = 1