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/config/cc_rightscale_userdata.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/config/cc_rightscale_userdata.py')
-rw-r--r-- | cloudinit/config/cc_rightscale_userdata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_rightscale_userdata.py b/cloudinit/config/cc_rightscale_userdata.py index 7d2ec10a..1f769c0a 100644 --- a/cloudinit/config/cc_rightscale_userdata.py +++ b/cloudinit/config/cc_rightscale_userdata.py @@ -82,7 +82,7 @@ def handle(name, _cfg, cloud, log, _args): resp = uhelp.readurl(url) # Ensure its a valid http response (and something gotten) if resp.ok() and resp.contents: - util.write_file(fname, str(resp), mode=0700) + util.write_file(fname, resp, mode=0o700) wrote_fns.append(fname) except Exception as e: captured_excps.append(e) |