/var/chef/roles file suffix changed.

Change-Id: I1f4e4923984e69509cb6d4d884f01fcc09799513
This commit is contained in:
xiaodongwang 2014-08-07 16:59:47 -07:00
parent 20b53b88e1
commit 9b1ca0ae9d

View File

@ -37,7 +37,7 @@ def main():
roles_dir = flags.OPTIONS.roles_dir
for item in os.listdir(roles_dir):
if item.endswith('.rb'):
if item.endswith('.rb') or item.endswith('.json'):
rolelist.append(os.path.join(roles_dir, item))
else:
logging.info('ignore %s in %s', item, roles_dir)