In CentOS 5 the .split() causes a stacktrace. Confirmed.split() appears to be unneeded in other OSs.

This commit is contained in:
justinta89 2015-10-28 11:48:39 -06:00
parent 3942b4d0e6
commit 3b4d03ff1a

View file

@ -223,7 +223,7 @@ def fstype(device):
# itself for its type
df_out = __salt__['cmd.run']('df -T {0}'.format(device)).splitlines()
if len(df_out) > 1:
fs_type = df_out[1].split()[1]
fs_type = df_out[1]
if fs_type:
return fs_type