Merge pull request #45940 from dmurphy18/fix_aix_cmdmod

Fix use of su  to use '-'  on AIX
This commit is contained in:
Nicole Thomas 2018-02-09 07:09:10 -05:00 committed by GitHub
commit 7779fea7ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(