mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix use of 'su' for AIX to use '-'
This commit is contained in:
parent
27ff82f996
commit
dd2788419b
1 changed files with 1 additions and 1 deletions
|
@ -407,7 +407,7 @@ def _run(cmd,
|
|||
elif __grains__['os_family'] in ['Solaris']:
|
||||
env_cmd = ('su', '-', runas, '-c', sys.executable)
|
||||
elif __grains__['os_family'] in ['AIX']:
|
||||
env_cmd = ('su', runas, '-c', sys.executable)
|
||||
env_cmd = ('su', '-', runas, '-c', sys.executable)
|
||||
else:
|
||||
env_cmd = ('su', '-s', shell, '-', runas, '-c', sys.executable)
|
||||
env_encoded = subprocess.Popen(
|
||||
|
|
Loading…
Add table
Reference in a new issue