Skip to content

Commit a0ef40a

Browse files
author
Ferry Boender
committed
Fix bug in dirname invocation.
1 parent 7bad79c commit a0ef40a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ansiblecmdb/ansible.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def _parse_hostvar_dir(self, inventory_path):
143143
if os.path.isdir(inventory_path):
144144
path = os.path.join(inventory_path, 'host_vars')
145145
else:
146-
path = os.path.join(os.path.dirname(inventory_path, 'host_vars'))
146+
path = os.path.join(os.path.dirname(inventory_path), 'host_vars')
147147

148148
self.log.debug("Parsing host vars (dir): {0}".format(path))
149149
if not os.path.exists(path):

0 commit comments

Comments
 (0)