Commit b5c9d5a5 by Michael DeHaan

Inventory directory should always be absolute. Fixes #4535.

parent 7201a6ff
...@@ -431,8 +431,8 @@ class Inventory(object): ...@@ -431,8 +431,8 @@ class Inventory(object):
dname = os.path.dirname(self.host_list) dname = os.path.dirname(self.host_list)
if dname is None or dname == '' or dname == '.': if dname is None or dname == '' or dname == '.':
cwd = os.getcwd() cwd = os.getcwd()
return cwd return os.path.abspath(cwd)
return dname return os.path.abspath(dname)
def src(self): def src(self):
""" if inventory came from a file, what's the directory and file name? """ """ if inventory came from a file, what's the directory and file name? """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment