mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
In CentOS 5 the .split() causes a stacktrace. Confirmed.split() appears to be unneeded in other OSs.
This commit is contained in:
parent
3942b4d0e6
commit
3b4d03ff1a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue