Skip to content

Commit

Permalink
Improved error reporting when specifying inventories
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Boender committed Jan 7, 2017
1 parent 4f04a7e commit 54cec2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
v1.19 2017-01-07

- Always show stacktrace on error and include class name.
- Always show stack trace on error and include class name.
- Exit with proper exit codes.
- Exclude certain file extensions from consideration as inventories.
- Improved error reporting and lookups of templates.
- Improved error reporting when specifying inventories.

v1.18 2016-12-07

Expand Down
2 changes: 1 addition & 1 deletion src/ansiblecmdb/ansible.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _handle_inventory(self, inventory_path):

self._handle_inventory(os.path.join(inventory_path, fname))
else:
sys.stderr.write("Not a file or directory: '{}'\n".format(inventory_path))
raise IOError("Invalid inventory file / dir: '{}'".format(inventory_path))
self._parse_hostvar_dir(inventory_path)

def _parse_hosts_inventory(self, inventory_path):
Expand Down

0 comments on commit 54cec2a

Please sign in to comment.