Browse code

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

James Cammarata authored on 2013/12/21 00:26:42
Showing 1 changed files
... ...
@@ -523,7 +523,7 @@ def execute_init(args, options):
523 523
             f.write(rendered_meta)
524 524
             f.close()
525 525
             pass
526
-        else:
526
+        elif dir not in ('files','templates'):
527 527
             # just write a (mostly) empty YAML file for main.yml
528 528
             f = open(main_yml_path, 'w')
529 529
             f.write('---\n# %s file for %s\n' % (dir,role_name))