ServiceNowITOM / ansible-sn-inventory

Ansible Dynamic Inventory for ServiceNow
Apache License 2.0
79 stars 45 forks source link

Make cache dir relative to script dir, not cwd #25

Closed ursetto closed 5 years ago

ursetto commented 5 years ago

Ensure the cache dir is relative to the script directory, not the current directory, as per the documentation. Absolute paths are also accepted.

Also expands home ~ in the cache dir when reading cache (it was previously expanded only when writing cache).