Skip to content

Commit

Permalink
fix inventory.basedir is not absolute path when hostfile is startswit…
Browse files Browse the repository at this point in the history
…h "./"
  • Loading branch information
ftao committed Aug 11, 2013
1 parent 4d1f447 commit 51a180b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/inventory/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def basedir(self):
if not self.is_file():
return None
dname = os.path.dirname(self.host_list)
if dname is None or dname == '':
if dname is None or dname == '' or dname == '.':
cwd = os.getcwd()
return cwd
return dname
Expand Down

0 comments on commit 51a180b

Please sign in to comment.