diff options
author | Barry Warsaw <barry@python.org> | 2015-01-27 14:24:22 -0500 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2015-01-27 14:24:22 -0500 |
commit | 1e76dad45e3bce4dac5a638dda970fc02a044dbb (patch) | |
tree | f0d3400f9f76c3ef53d018ba89efe484af8dc68c /cloudinit/distros/rhel_util.py | |
parent | e2cfd12dc79a6350d9f1f3111a15bdb6666ccad7 (diff) | |
download | vyos-cloud-init-1e76dad45e3bce4dac5a638dda970fc02a044dbb.tar.gz vyos-cloud-init-1e76dad45e3bce4dac5a638dda970fc02a044dbb.zip |
Respond to review:
- Remove str() wrappers to second argument to write_files() where it is no
longer necessary.
Also: Fixed a couple of other octal literals which clearly weren't being
tested.
Diffstat (limited to 'cloudinit/distros/rhel_util.py')
-rw-r--r-- | cloudinit/distros/rhel_util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/distros/rhel_util.py b/cloudinit/distros/rhel_util.py index 903d7793..84aad623 100644 --- a/cloudinit/distros/rhel_util.py +++ b/cloudinit/distros/rhel_util.py @@ -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), 0o644) + util.write_file(fn, r_conf, 0o644) |