summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-19 21:23:41 +0000
committerScott Moser <smoser@ubuntu.com>2011-01-19 21:23:41 +0000
commit5bc0d3898c09d012a9be1eaeaa9dba70029a1db0 (patch)
tree3dabd794d5dd63b6c4d561f747ee27c35482ef75
parent7a187863644c0a5baf2c72c3029621677cbb56c6 (diff)
downloadvyos-cloud-init-5bc0d3898c09d012a9be1eaeaa9dba70029a1db0.tar.gz
vyos-cloud-init-5bc0d3898c09d012a9be1eaeaa9dba70029a1db0.zip
do not use 'str' as a variable name
-rw-r--r--cloudinit/UserDataHandler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/UserDataHandler.py b/cloudinit/UserDataHandler.py
index ab7d0bc8..feb67149 100644
--- a/cloudinit/UserDataHandler.py
+++ b/cloudinit/UserDataHandler.py
@@ -67,8 +67,8 @@ def process_includes(msg,parts):
ctype = None
ctype_orig = part.get_content_type()
if ctype_orig == "text/plain":
- for str, gtype in starts_with_mappings.items():
- if payload.startswith(str):
+ for sstr, gtype in starts_with_mappings.items():
+ if payload.startswith(sstr):
ctype = gtype
break