mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #45940 from dmurphy18/fix_aix_cmdmod
Fix use of su to use '-' on AIX
This commit is contained in:
commit
7779fea7ba
@ -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…
Reference in New Issue
Block a user