Don't create main.yml in files/templates directories on galaxy init

This commit is contained in:
James Cammarata 2013-12-20 09:26:42 -06:00
parent a14d1ca485
commit 0d4294da42

View file

@ -523,7 +523,7 @@ def execute_init(args, options):
f.write(rendered_meta)
f.close()
pass
else:
elif dir not in ('files','templates'):
# just write a (mostly) empty YAML file for main.yml
f = open(main_yml_path, 'w')
f.write('---\n# %s file for %s\n' % (dir,role_name))