summaryrefslogtreecommitdiff
path: root/cloudinit/DataSource.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/DataSource.py')
-rw-r--r--cloudinit/DataSource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/DataSource.py b/cloudinit/DataSource.py
index 66763181..bdcac4ef 100644
--- a/cloudinit/DataSource.py
+++ b/cloudinit/DataSource.py
@@ -69,7 +69,7 @@ class DataSource:
if isinstance(self.metadata['public-keys'], str):
return([self.metadata['public-keys'],])
- for keyname, klist in self.metadata['public-keys'].items():
+ for _keyname, klist in self.metadata['public-keys'].items():
# lp:506332 uec metadata service responds with
# data that makes boto populate a string for 'klist' rather
# than a list.
@@ -197,7 +197,7 @@ def is_ipv4(instr):
return False
try:
- r = filter(lambda x: int(x) < 256 and x > 0, toks)
+ filter(lambda x: int(x) < 256 and x > 0, toks)
except:
return False