From: Peter Palfrader Date: Thu, 5 Oct 2017 09:43:36 +0000 (+0200) Subject: Fix octal number in python script to it compiles X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=b7511e3fa0df672422c18e1115dffc71b63f8191;p=mirror%2Fdsa-puppet.git Fix octal number in python script to it compiles --- diff --git a/modules/onion/files/create-onionbalance-config b/modules/onion/files/create-onionbalance-config index 4df5e7095..d0b97fbb6 100755 --- a/modules/onion/files/create-onionbalance-config +++ b/modules/onion/files/create-onionbalance-config @@ -75,7 +75,7 @@ for s in service_instances: relkeyfile = os.path.join(relkeydir, s+'.key') if not os.path.exists(keyfile): subprocess.check_call(['openssl', 'genrsa', '-out', keyfile, '1024'], - preexec_fn=lambda: os.umask(0027)) + preexec_fn=lambda: os.umask(0o027)) shutil.chown(keyfile, group='onionbalance') os.chmod(keyfile, 0o640)