From f8e7261ade72a413f9289e81b8f97e22ff16ba8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markku=20Leini=C3=B6?= Date: Mon, 25 Nov 2019 21:03:56 +0200 Subject: [PATCH] Skip params if url_override set in Request._make_call() --- pynetbox/core/query.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pynetbox/core/query.py b/pynetbox/core/query.py index 00c67c6b..335ddd7a 100644 --- a/pynetbox/core/query.py +++ b/pynetbox/core/query.py @@ -235,10 +235,11 @@ def _make_call( headers["X-Session-Key"] = self.session_key params = {} - if self.filters: - params = self.filters - if add_params: - params.update(add_params) + if not url_override: + if self.filters: + params = self.filters + if add_params: + params.update(add_params) req = getattr(self.http_session, verb)( url_override or self.url, headers=headers, verify=self.ssl_verify,