Skip to content

Commit

Permalink
Merge pull request #1076 from SleeplessAnnoyedNerd/Issue-1075
Browse files Browse the repository at this point in the history
[Issue #1075] Fixing setup module fails if PATH is not set on target hos...
  • Loading branch information
mpdehaan committed Sep 23, 2012
2 parents 2f97afb + 78b7a3a commit 3939f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/module_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def get_bin_path(self, arg, required=False, opt_dirs=[]):
for d in opt_dirs:
if d is not None and os.path.exists(d):
paths.append(d)
paths += os.environ.get('PATH').split(':')
paths += os.environ.get('PATH', '').split(':')
bin_path = None
# mangle PATH to include /sbin dirs
for p in sbin_paths:
Expand Down

0 comments on commit 3939f7a

Please sign in to comment.