bootstrap/template.py: generate Vagrantfile just once
authorStefan Metzmacher <metze@samba.org>
Thu, 11 Apr 2019 08:34:28 +0000 (10:34 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 18 Apr 2019 12:09:34 +0000 (12:09 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
bootstrap/template.py

index 2eb70fd693ee0abff4881a772d918d74b45643e1..1e101c8f0e05c9f478f4ba8feb57fba236f0636f 100755 (executable)
@@ -46,11 +46,11 @@ def render(dists):
             if path.endswith('.sh'):
                 os.chmod(path, 0o755)
 
-        key = 'Vagrantfile'
-        path = os.path.join(OUT, key)
-        log.info('%s: render "%s" to %s', dist, key, path)
-        with io.open(path, mode='wt', encoding='utf8') as fp:
-            fp.write(VAGRANTFILE)
+    key = 'Vagrantfile'
+    path = os.path.join(OUT, key)
+    log.info('%s: render "%s" to %s', dist, key, path)
+    with io.open(path, mode='wt', encoding='utf8') as fp:
+        fp.write(VAGRANTFILE)
 
 
 def main():