summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_puppet.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/config/cc_puppet.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/config/cc_puppet.py')
-rw-r--r--cloudinit/config/cc_puppet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_puppet.py b/cloudinit/config/cc_puppet.py
index 6f1b3c57..4501598e 100644
--- a/cloudinit/config/cc_puppet.py
+++ b/cloudinit/config/cc_puppet.py
@@ -91,7 +91,7 @@ def handle(name, cfg, cloud, log, _args):
util.chownbyname(PUPPET_SSL_DIR, 'puppet', 'root')
util.ensure_dir(PUPPET_SSL_CERT_DIR)
util.chownbyname(PUPPET_SSL_CERT_DIR, 'puppet', 'root')
- util.write_file(PUPPET_SSL_CERT_PATH, str(cfg))
+ util.write_file(PUPPET_SSL_CERT_PATH, cfg)
util.chownbyname(PUPPET_SSL_CERT_PATH, 'puppet', 'root')
else:
# Iterate throug the config items, we'll use ConfigParser.set