-
Notifications
You must be signed in to change notification settings - Fork 23.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
contrib/inventory/nsot.py: Make it compatible with NSoT v1.x #19421
Conversation
To make this compatible with NSoT v1.x, removing ['data']['devices'].
@coxley I believe you created the original inventory script. Could you please review this change. Thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed in #ansible-meeting on 2016-12-20
- This change breaks anyone using NSoT < 1.0 which was released 1.0 (2016-04-27)
- Can you please make this compatible with old and newer nsot data
Thanks
Changes look appropriate for the new API version to me! Simple enough change really. @allanice001, if you could just show output testing the functionality from a |
@allanice001 Could you please show the |
$ NSOT_INVENTORY_CONFIG=$PWD/test.yaml nsot.py --list | jq '.' |
@coxley The details you've asked for have been added. If you are happy I'll get this merged. |
Sorry, have been out of town. LGTM!! |
Thanks everyone, merged. Just as a heads up, we have a Network Working Group that you may be interested in https://github.com/ansible/community/blob/master/MEETINGS.md |
ISSUE TYPE
COMPONENT NAME
contrib/inventory/nsot
ANSIBLE VERSION
SUMMARY
To make this compatible with NSoT v1.x, removing ['data']['devices'].