-
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
New lookup plugin snow: Lookup record data from Service-Now #30804
Conversation
Fixup lisc.
I'm not sure I understand why this is unstable. ? |
@garbled1 I've restarted the tests. The unstable result appears to be unrelated to your changes. |
Looks like the failure was something to do with installing an rpm on fedora and the pkg index. So unrelated I think? |
@garbled1 Yes, I've restarted CI again. Hopefully we won't hit the timeout this time. |
Looks like the CI is good on this one now, is it awaiting review? |
@n3pjk Could you please review this and let me know ? Thanks |
This looks like an alternative approach to snow_record_find (SRF). I think SRF has a more robust query building capability, and one can retrieve a set of SNow records and use the standard 'with: "{{ snow_records }}"' to process. Also, the login context is more tightly bound to the query in SRF. In the conversation I had with @garbled1 re SRF, I recall him saying he didn't know why SRF wasn't also included. Perhaps this was another take on the same problem? I'm wondering if this is still needed. In any case, this needs to have OAuth support added. It can't use ServiceNowClient as it isn't a full-fledged module. |
SUMMARY
Add a lookup plugin to search and find record data in Service-Now
ISSUE TYPE
COMPONENT NAME
lib/ansible/plugins/lookup/snow.py
ANSIBLE VERSION
ADDITIONAL INFORMATION
Plugin to allow scanning of records in service now.