From cdcf11eeae36e5da5d7ea8a3dca1611987a52089 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Mon, 29 Sep 2014 08:42:20 -0400 Subject: fix re-use of 'platform' in local scope --- cloudinit/util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cloudinit/util.py') 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): -- cgit v1.2.3