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/sources/helpers/azure.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/sources/helpers/azure.py')
-rw-r--r-- | cloudinit/sources/helpers/azure.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/sources/helpers/azure.py b/cloudinit/sources/helpers/azure.py index 959b1bda..6cda5721 100644 --- a/cloudinit/sources/helpers/azure.py +++ b/cloudinit/sources/helpers/azure.py @@ -274,7 +274,8 @@ class WALinuxAgentShim(object): name = os.path.basename(hook_file).replace('.json', '') dhcp_options[name] = json.loads(util.load_file((hook_file))) except ValueError: - raise ValueError("%s is not valid JSON data", hook_file) + raise ValueError( + '{_file} is not valid JSON data'.format(_file=hook_file)) return dhcp_options @staticmethod |