mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +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
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