diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-01-17 12:42:44 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-01-17 12:42:44 -0500 |
commit | 2f7227c7092ad873757167f62c2a82fb4ee69472 (patch) | |
tree | acc620e1f0423910a4d0ea0d79ee231290e4a393 /cloudinit/CloudConfig/cc_set_hostname.py | |
parent | 1d00c0936bfc63117493d89268da8c81611b3c40 (diff) | |
parent | ec070cdf8746651d6dea011bd3ea9a445223028c (diff) | |
download | vyos-cloud-init-2f7227c7092ad873757167f62c2a82fb4ee69472.tar.gz vyos-cloud-init-2f7227c7092ad873757167f62c2a82fb4ee69472.zip |
fix pylint warnings (LP: #914739) [Juerg Haefliger]
This merge pulls in Jeurg's 'fix-pylint-warnings.tgz' patchset from
LP: #914739.
Diffstat (limited to 'cloudinit/CloudConfig/cc_set_hostname.py')
-rw-r--r-- | cloudinit/CloudConfig/cc_set_hostname.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/CloudConfig/cc_set_hostname.py b/cloudinit/CloudConfig/cc_set_hostname.py index 4f19b0c8..18189ed0 100644 --- a/cloudinit/CloudConfig/cc_set_hostname.py +++ b/cloudinit/CloudConfig/cc_set_hostname.py @@ -18,8 +18,8 @@ import cloudinit.util as util -def handle(_name,cfg,cloud,log,_args): - if util.get_cfg_option_bool(cfg,"preserve_hostname",False): +def handle(_name, cfg, cloud, log, _args): + if util.get_cfg_option_bool(cfg, "preserve_hostname", False): log.debug("preserve_hostname is set. not setting hostname") return(True) @@ -34,5 +34,5 @@ def handle(_name,cfg,cloud,log,_args): def set_hostname(hostname, log): util.subp(['hostname', hostname]) - util.write_file("/etc/hostname","%s\n" % hostname, 0644) + util.write_file("/etc/hostname", "%s\n" % hostname, 0644) log.debug("populated /etc/hostname with %s on first boot", hostname) |