diff options
author | Barry Warsaw <barry@python.org> | 2015-01-21 15:35:56 -0500 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2015-01-21 15:35:56 -0500 |
commit | cccc0ff012d2e7b5c238609b22cc064b519e54a5 (patch) | |
tree | 1ca463be706ede0f0b3f0d967f67de79d13e5793 /cloudinit/distros/__init__.py | |
parent | 463d626ba53e54160f350d84831e1877b24f4024 (diff) | |
download | vyos-cloud-init-cccc0ff012d2e7b5c238609b22cc064b519e54a5.tar.gz vyos-cloud-init-cccc0ff012d2e7b5c238609b22cc064b519e54a5.zip |
Fix file modes to be Python 2/3 compatible.
Diffstat (limited to 'cloudinit/distros/__init__.py')
-rw-r--r-- | cloudinit/distros/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/distros/__init__.py b/cloudinit/distros/__init__.py index 5eab780b..a913e15a 100644 --- a/cloudinit/distros/__init__.py +++ b/cloudinit/distros/__init__.py @@ -272,7 +272,7 @@ class Distro(object): if header: contents.write("%s\n" % (header)) contents.write("%s\n" % (eh)) - util.write_file(self.hosts_fn, contents.getvalue(), mode=0644) + util.write_file(self.hosts_fn, contents.getvalue(), mode=0o644) def _bring_up_interface(self, device_name): cmd = ['ifup', device_name] |