mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Don't split the string on a single line
This is to address https://github.com/saltstack/salt/issues/18991
This commit is contained in:
parent
6f565c0d76
commit
a07908bdea
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ def save_config():
|
|||
salt '*' raid.save_config
|
||||
|
||||
'''
|
||||
scan = __salt__['cmd.run']('mdadm --detail --scan', python_shell=False).split()
|
||||
scan = __salt__['cmd.run']('mdadm --detail --scan', python_shell=False).splitlines()
|
||||
# Issue with mdadm and ubuntu
|
||||
# REF: http://askubuntu.com/questions/209702/why-is-my-raid-dev-md1-showing-up-as-dev-md126-is-mdadm-conf-being-ignored
|
||||
if __grains__['os'] == 'Ubuntu':
|
||||
|
|
Loading…
Add table
Reference in a new issue