summaryrefslogtreecommitdiff
path: root/cloudinit/distros/rhel_util.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2015-01-22 21:21:04 -0500
committerBarry Warsaw <barry@python.org>2015-01-22 21:21:04 -0500
commit3b798b5d5c3caa5d0e8e534855e29010ca932aaa (patch)
treec517762e79e4421d9b5a1be74cfe5776a7b9427a /cloudinit/distros/rhel_util.py
parent6f2a62c2fde85839ed437549597498a707f5da68 (diff)
downloadvyos-cloud-init-3b798b5d5c3caa5d0e8e534855e29010ca932aaa.tar.gz
vyos-cloud-init-3b798b5d5c3caa5d0e8e534855e29010ca932aaa.zip
Low hanging Python 3 fruit.
Diffstat (limited to 'cloudinit/distros/rhel_util.py')
-rw-r--r--cloudinit/distros/rhel_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/distros/rhel_util.py b/cloudinit/distros/rhel_util.py
index 063d536e..903d7793 100644
--- a/cloudinit/distros/rhel_util.py
+++ b/cloudinit/distros/rhel_util.py
@@ -50,7 +50,7 @@ def update_sysconfig_file(fn, adjustments, allow_empty=False):
]
if not exists:
lines.insert(0, util.make_header())
- util.write_file(fn, "\n".join(lines) + "\n", 0644)
+ util.write_file(fn, "\n".join(lines) + "\n", 0o644)
# Helper function to read a RHEL/SUSE /etc/sysconfig/* file
@@ -86,4 +86,4 @@ def update_resolve_conf_file(fn, dns_servers, search_servers):
r_conf.add_search_domain(s)
except ValueError:
util.logexc(LOG, "Failed at adding search domain %s", s)
- util.write_file(fn, str(r_conf), 0644)
+ util.write_file(fn, str(r_conf), 0o644)