diff options
| author | Scott Moser <smoser@ubuntu.com> | 2011-01-19 21:23:41 +0000 | 
|---|---|---|
| committer | Scott Moser <smoser@ubuntu.com> | 2011-01-19 21:23:41 +0000 | 
| commit | 5bc0d3898c09d012a9be1eaeaa9dba70029a1db0 (patch) | |
| tree | 3dabd794d5dd63b6c4d561f747ee27c35482ef75 | |
| parent | 7a187863644c0a5baf2c72c3029621677cbb56c6 (diff) | |
| download | vyos-cloud-init-5bc0d3898c09d012a9be1eaeaa9dba70029a1db0.tar.gz vyos-cloud-init-5bc0d3898c09d012a9be1eaeaa9dba70029a1db0.zip | |
do not use 'str' as a variable name
| -rw-r--r-- | cloudinit/UserDataHandler.py | 4 | 
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 | 
