summaryrefslogtreecommitdiff
path: root/cloudinit/user_data.py
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2015-01-27 14:24:22 -0500
committerBarry Warsaw <barry@python.org>2015-01-27 14:24:22 -0500
commit1e76dad45e3bce4dac5a638dda970fc02a044dbb (patch)
treef0d3400f9f76c3ef53d018ba89efe484af8dc68c /cloudinit/user_data.py
parente2cfd12dc79a6350d9f1f3111a15bdb6666ccad7 (diff)
downloadvyos-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/user_data.py')
-rw-r--r--cloudinit/user_data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/user_data.py b/cloudinit/user_data.py
index 3f860f3b..bf5642a5 100644
--- a/cloudinit/user_data.py
+++ b/cloudinit/user_data.py
@@ -248,7 +248,7 @@ class UserDataProcessor(object):
resp = util.read_file_or_url(include_url,
ssl_details=self.ssl_details)
if include_once_on and resp.ok():
- util.write_file(include_once_fn, str(resp), mode=0o600)
+ util.write_file(include_once_fn, resp, mode=0o600)
if resp.ok():
content = str(resp)
else: