summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-03-03 12:20:48 -0500
committerScott Moser <smoser@ubuntu.com>2016-03-03 12:20:48 -0500
commitc496b6a11d504ef62371cb5e03ac80b4ceb37540 (patch)
tree086cf1486afe43ed385edc635593e3ec8957d534 /cloudinit/sources
parent97efb9d48197d7098f1abe2ee519418afbe6aec5 (diff)
downloadvyos-cloud-init-c496b6a11d504ef62371cb5e03ac80b4ceb37540.tar.gz
vyos-cloud-init-c496b6a11d504ef62371cb5e03ac80b4ceb37540.zip
run pyflakes in more places, fix fallout
this makes 'make' run pyflakes, so failures there will stop a build. also adds it to tox.
Diffstat (limited to 'cloudinit/sources')
-rw-r--r--cloudinit/sources/DataSourceOVF.py3
-rw-r--r--cloudinit/sources/helpers/vmware/imc/config_nic.py1
2 files changed, 2 insertions, 2 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