summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-07-21 12:36:53 -0400
committerScott Moser <smoser@ubuntu.com>2015-07-21 12:36:53 -0400
commitb5230bc3e9d65692093cae9d2f4ca628435a382b (patch)
tree649eb8a2c42a8f8099b32cd59c0d4231c3fcfad2
parent0db6078c5555cdddcd195cefdc04154e4a754dd6 (diff)
downloadcloud-init-git-b5230bc3e9d65692093cae9d2f4ca628435a382b.tar.gz
fix 'make pyflakes'
-rw-r--r--cloudinit/sources/DataSourceAzure.py2
-rw-r--r--tests/unittests/test_datasource/test_azure.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py
index d0a882ca..2ce85637 100644
--- a/cloudinit/sources/DataSourceAzure.py
+++ b/cloudinit/sources/DataSourceAzure.py
@@ -430,7 +430,7 @@ def write_files(datadir, files, dirmode=None):
elem.text != DEF_PASSWD_REDACTION):
elem.text = DEF_PASSWD_REDACTION
return ET.tostring(root)
- except Exception as e:
+ except Exception:
LOG.critical("failed to redact userpassword in {}".format(fname))
return cnt
diff --git a/tests/unittests/test_datasource/test_azure.py b/tests/unittests/test_datasource/test_azure.py
index 33b971f6..d632bcb9 100644
--- a/tests/unittests/test_datasource/test_azure.py
+++ b/tests/unittests/test_datasource/test_azure.py
@@ -174,7 +174,7 @@ class TestAzureDataSource(TestCase):
def xml_notequals(self, oxml, nxml):
try:
self.xml_equals(oxml, nxml)
- except AssertionError as e:
+ except AssertionError:
return
raise AssertionError("XML is the same")