summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2014-09-29 08:42:20 -0400
committerScott Moser <smoser@ubuntu.com>2014-09-29 08:42:20 -0400
commitcdcf11eeae36e5da5d7ea8a3dca1611987a52089 (patch)
tree4c0ad5b777c0adc0647f0873aa98a3f50c95ccae
parentf4d3f05827b3302960eedb6278500a3b007eb807 (diff)
downloadvyos-cloud-init-cdcf11eeae36e5da5d7ea8a3dca1611987a52089.tar.gz
vyos-cloud-init-cdcf11eeae36e5da5d7ea8a3dca1611987a52089.zip
fix re-use of 'platform' in local scope
-rw-r--r--cloudinit/util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index d233e6e1..63c34b32 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -1359,11 +1359,11 @@ def mount_cb(device, callback, data=None, rw=False, mtype=None, sync=True):
mtypes = None
# clean up 'mtype' input a bit based on platform.
- platform = platform.system.lower()
- if platform == "linux":
+ platform_lower = platform.system.lower()
+ if platform_lower == "linux":
if mtypes is None:
mtypes = ["auto"]
- elif platform.endswith("bsd"):
+ elif platform_lower.endswith("bsd"):
if mtypes is None:
mtypes = ['ufs', 'cd9660', 'vfat']
for index, mtype in enumerate(mtypes):