mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #1076 from SleeplessAnnoyedNerd/Issue-1075
[Issue #1075] Fixing setup module fails if PATH is not set on target hos...
This commit is contained in:
commit
3939f7a812
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ class AnsibleModule(object):
|
||||||
for d in opt_dirs:
|
for d in opt_dirs:
|
||||||
if d is not None and os.path.exists(d):
|
if d is not None and os.path.exists(d):
|
||||||
paths.append(d)
|
paths.append(d)
|
||||||
paths += os.environ.get('PATH').split(':')
|
paths += os.environ.get('PATH', '').split(':')
|
||||||
bin_path = None
|
bin_path = None
|
||||||
# mangle PATH to include /sbin dirs
|
# mangle PATH to include /sbin dirs
|
||||||
for p in sbin_paths:
|
for p in sbin_paths:
|
||||||
|
|
Loading…
Reference in a new issue