Skip to content

Change the inventory plugin to not fetch the openapi spec unless needed #642

@joewesch

Description

@joewesch

At the beginning of the inventory plugin, we fetch the openapi spec from the Nautobot instance. This is a very heavy call and it takes quite a bit of time to complete. This API call is done to validate the query filters that are provided via query_filters, device_query_filters and vm_query_filters. The problem is that we do this openapi call regardless if any query filters were provided or not. We should, at the very least, move this openapi call behind a conditional, and possibly look at refactoring to make it not needed.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions