summaryrefslogtreecommitdiff
path: root/cloudinit/distros
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2015-01-21 15:42:59 -0500
committerBarry Warsaw <barry@python.org>2015-01-21 15:42:59 -0500
commita64bb4febc79fcf641f6471d8cc00c74ca915f3d (patch)
tree7dd64f38f548fa38f11f400ce4392f7e3f504e15 /cloudinit/distros
parentcccc0ff012d2e7b5c238609b22cc064b519e54a5 (diff)
downloadvyos-cloud-init-a64bb4febc79fcf641f6471d8cc00c74ca915f3d.tar.gz
vyos-cloud-init-a64bb4febc79fcf641f6471d8cc00c74ca915f3d.zip
More octal literal fixes.
Diffstat (limited to 'cloudinit/distros')
-rw-r--r--cloudinit/distros/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py
index a913e15a..49a0b652 100644
--- a/cloudinit/distros/__init__.py
+++ b/cloudinit/distros/__init__.py
@@ -468,7 +468,7 @@ class Distro(object):
util.make_header(base="added"),
"#includedir %s" % (path), '']
sudoers_contents = "\n".join(lines)
- util.write_file(sudo_base, sudoers_contents, 0440)
+ util.write_file(sudo_base, sudoers_contents, 0o440)
else:
lines = ['', util.make_header(base="added"),
"#includedir %s" % (path), '']
@@ -478,7 +478,7 @@ class Distro(object):
except IOError as e:
util.logexc(LOG, "Failed to write %s", sudo_base)
raise e
- util.ensure_dir(path, 0750)
+ util.ensure_dir(path, 0o750)
def write_sudo_rules(self, user, rules, sudo_file=None):
if not sudo_file:
@@ -506,7 +506,7 @@ class Distro(object):
content,
]
try:
- util.write_file(sudo_file, "\n".join(contents), 0440)
+ util.write_file(sudo_file, "\n".join(contents), 0o440)
except IOError as e:
util.logexc(LOG, "Failed to write sudoers file %s", sudo_file)
raise e