Skip to content

Commit

Permalink
Merge pull request nautobot#115 from u1735067/patch-1
Browse files Browse the repository at this point in the history
Fix doc in lookup_graphql
  • Loading branch information
jvanderaa authored Nov 23, 2021
2 parents b297cc3 + ad4bfc8 commit 0f4ae29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/lookup/lookup_graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
- Whether or not to validate SSL of the Nautobot instance
required: False
default: True
variables:
graph_variables:
description:
- Dictionary of keys/values to pass into the GraphQL query
- See [pynautobot GraphQL documentation](https://pynautobot.readthedocs.io/en/latest/advanced/graphql.html) for more details
Expand All @@ -91,7 +91,7 @@
# Make query to GraphQL Endpoint
- name: Obtain list of sites from Nautobot
set_fact:
query_response: "{{ query('networktocode.nautobot.lookup_graphql', query=query, url='https://nautobot.example.com', token='<redact>') }}"
query_response: "{{ query('networktocode.nautobot.lookup_graphql', query=query_string, url='https://nautobot.example.com', token='<redact>') }}"
# Example with variables
- name: SET FACTS TO SEND TO GRAPHQL ENDPOINT
Expand Down

0 comments on commit 0f4ae29

Please sign in to comment.