Skip to content

Commit

Permalink
Fix bug in dirname invocation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Boender committed Nov 13, 2017
1 parent 7bad79c commit a0ef40a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblecmdb/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _parse_hostvar_dir(self, inventory_path):
if os.path.isdir(inventory_path):
path = os.path.join(inventory_path, 'host_vars')
else:
path = os.path.join(os.path.dirname(inventory_path, 'host_vars'))
path = os.path.join(os.path.dirname(inventory_path), 'host_vars')

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

0 comments on commit a0ef40a

Please sign in to comment.