Fixup permissions for files

This commit is contained in:
James Page 2016-11-10 09:47:22 +00:00
parent 069f63f1de
commit 7cedc16110

View File

@ -83,7 +83,7 @@ class OpenStackSnap():
LOG.info('Rendering {} to {}'.format(template,
target_file))
with open(target_file, 'w') as tf:
os.fchmod(tf.fileno(), 0o550)
os.fchmod(tf.fileno(), 0o640)
tf.write(renderer.render(template,
self.snap_env))