Skip to content

Commit

Permalink
Update plugins/inventory/gql_inventory.py
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Wesch <10467633+joewesch@users.noreply.github.com>
  • Loading branch information
jvanderaa and joewesch authored Aug 14, 2023
1 parent 34989db commit c5299e4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/inventory/gql_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,6 @@ def main(self):

# Error handling in case of a malformed query
if "errors" in json_data:
# Need to return mock response data that is empty to prevent any failures downstream
raise AnsibleParserError(to_native(json_data["errors"][0]["message"]))

for device in json_data["data"].get("devices", []) + json_data["data"].get("virtual_machines", []):
Expand Down

0 comments on commit c5299e4

Please sign in to comment.