Hello,
It seems the developing_api.rst page (https://github.com/ansible/ansible/blob/v2.4.1.0-1/docs/docsite/rst/dev_guide/developing_api.rst) is outdated due to the 2.4 inventory changes. Are there any tips for doing simple inventory manipulation via Python with Ansible 2.4? Thanks!
-bw
Looks like some doc-strings around https://github.com/ansible/ansible/blob/stable-2.4/lib/ansible/inventory/manager.py#L119 would be helpful. The code is there so you can read about what is needed. #yeahopensource
The Ansible inventory documentation was not helpful. Ultimately I got it working, albeit with a nuisance warning using https://gist.github.com/cbwest3/cb4e9ac16261595a82f8b4ab54629bac.
-bw