summaryrefslogtreecommitdiff
path: root/cloudinit/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/util.py')
-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):