diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-03-03 14:26:00 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-03-03 14:26:00 -0500 |
commit | 42d3efe69caeb2bb1ebdd67f1bae3e8f2134ff85 (patch) | |
tree | 31f921f29748fb79b961c5256f5eea3f92bc7b1c /cloudinit | |
parent | 97efb9d48197d7098f1abe2ee519418afbe6aec5 (diff) | |
parent | 112d25e6b2a20e8e39c1f22f6a30e0130616c64f (diff) | |
download | vyos-cloud-init-42d3efe69caeb2bb1ebdd67f1bae3e8f2134ff85.tar.gz vyos-cloud-init-42d3efe69caeb2bb1ebdd67f1bae3e8f2134ff85.zip |
fix pyflakes reported issues, and run it during package build and tox.
Diffstat (limited to 'cloudinit')
-rw-r--r-- | cloudinit/sources/DataSourceOVF.py | 3 | ||||
-rw-r--r-- | cloudinit/sources/helpers/vmware/imc/config_nic.py | 1 | ||||
-rw-r--r-- | cloudinit/util.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/sources/DataSourceOVF.py b/cloudinit/sources/DataSourceOVF.py index 72ba5aba..d12601a4 100644 --- a/cloudinit/sources/DataSourceOVF.py +++ b/cloudinit/sources/DataSourceOVF.py @@ -90,7 +90,8 @@ class DataSourceOVF(sources.DataSource): nicConfigurator.configure() vmwarePlatformFound = True except Exception as inst: - LOG.debug("Error while parsing the Customization Config File") + LOG.debug("Error while parsing the Customization " + "Config File: %s", inst) finally: dirPath = os.path.dirname(vmwareImcConfigFilePath) shutil.rmtree(dirPath) diff --git a/cloudinit/sources/helpers/vmware/imc/config_nic.py b/cloudinit/sources/helpers/vmware/imc/config_nic.py index 172a1649..6d721134 100644 --- a/cloudinit/sources/helpers/vmware/imc/config_nic.py +++ b/cloudinit/sources/helpers/vmware/imc/config_nic.py @@ -19,7 +19,6 @@ import logging import os -import subprocess import re from cloudinit import util diff --git a/cloudinit/util.py b/cloudinit/util.py index 45d49e66..0a639bb9 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -2147,7 +2147,7 @@ def _read_dmi_syspath(key): LOG.debug("dmi data %s returned %s", dmi_key_path, key_data) return key_data.strip() - except Exception as e: + except Exception: logexc(LOG, "failed read of %s", dmi_key_path) return None |