diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-03-04 01:45:58 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-03-04 01:45:58 -0500 |
commit | 8092805079d011093724d87e9485e5bf79479a72 (patch) | |
tree | 22e58fc368bc1ec27f527c153b8fe6fe27de4997 /cloudinit/config/cc_update_hostname.py | |
parent | 3400f839651d308e495d1d8a1d7c1c2b463ad98b (diff) | |
parent | 63357ed731710b2418810535d9c991adbaea8dcb (diff) | |
download | vyos-cloud-init-8092805079d011093724d87e9485e5bf79479a72.tar.gz vyos-cloud-init-8092805079d011093724d87e9485e5bf79479a72.zip |
Apply pep8, pyflakes fixes for python2 and 3
Update make check target to run pep8 and run pyflakes or pyflakes3
depending on the value of 'PYVER'. This way the python3 build
environment does not need python2 and vice versa.
Also have make check run the 'yaml' test.
tox: have tox run pep8 in the pyflakes
Diffstat (limited to 'cloudinit/config/cc_update_hostname.py')
-rw-r--r-- | cloudinit/config/cc_update_hostname.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/config/cc_update_hostname.py b/cloudinit/config/cc_update_hostname.py index e396ba13..5b78afe1 100644 --- a/cloudinit/config/cc_update_hostname.py +++ b/cloudinit/config/cc_update_hostname.py @@ -29,7 +29,7 @@ frequency = PER_ALWAYS def handle(name, cfg, cloud, log, _args): if util.get_cfg_option_bool(cfg, "preserve_hostname", False): log.debug(("Configuration option 'preserve_hostname' is set," - " not updating the hostname in module %s"), name) + " not updating the hostname in module %s"), name) return (hostname, fqdn) = util.get_hostname_fqdn(cfg, cloud) |