diff options
author | Chad Smith <chad.smith@canonical.com> | 2017-12-15 15:24:53 -0700 |
---|---|---|
committer | Chad Smith <chad.smith@canonical.com> | 2017-12-15 15:24:53 -0700 |
commit | c6a6f59e80f1fd62562b1fe9acfd45e1cee3cbe8 (patch) | |
tree | 97d76fe696a8822618842b83335dec1b7e9cdf5a /cloudinit/config/cc_apt_configure.py | |
parent | 4089e20c0a20bc2ad5c21b106687c4f3faf84b4b (diff) | |
download | vyos-cloud-init-c6a6f59e80f1fd62562b1fe9acfd45e1cee3cbe8.tar.gz vyos-cloud-init-c6a6f59e80f1fd62562b1fe9acfd45e1cee3cbe8.zip |
lint: Fix lints seen by pylint version 1.8.1.
This branch resolves lints seen by pylint revision 1.8.1 and updates our
pinned tox pylint dependency used by our tox pylint target.
Diffstat (limited to 'cloudinit/config/cc_apt_configure.py')
-rw-r--r-- | cloudinit/config/cc_apt_configure.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cloudinit/config/cc_apt_configure.py b/cloudinit/config/cc_apt_configure.py index 177cbcf7..5b9cbca0 100644 --- a/cloudinit/config/cc_apt_configure.py +++ b/cloudinit/config/cc_apt_configure.py @@ -275,8 +275,9 @@ def handle(name, ocfg, cloud, log, _): cfg = ocfg.get('apt', {}) if not isinstance(cfg, dict): - raise ValueError("Expected dictionary for 'apt' config, found %s", - type(cfg)) + raise ValueError( + "Expected dictionary for 'apt' config, found {config_type}".format( + config_type=type(cfg))) apply_debconf_selections(cfg, target) apply_apt(cfg, cloud, target) |