From 226adc7f23eb5cac200ec4aaf8865a2b54656157 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 11 Mar 2015 14:22:34 -0700 Subject: [PATCH] Its 0o not 0c to make an octal number Change-Id: Ifa2fe70bbb170d2a9cffad5a5280dfa74b59230a --- library/puppet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/puppet b/library/puppet index 273b688..22b5f89 100644 --- a/library/puppet +++ b/library/puppet @@ -91,7 +91,7 @@ def _write_structured_data(basedir, basename, data): # Ensure filepath? file_path = os.path.join(basedir, "{0}.json".format(basename)) with os.fdopen( - os.open(file_path, os.O_CREAT | os.O_WRONLY, 0c600), + os.open(file_path, os.O_CREAT | os.O_WRONLY, 0o600), 'w') as out_file: out_file.write(json.dumps(data).encode('utf8'))