Skip to content

Commit

Permalink
Skip params if url_override set in Request._make_call()
Browse files Browse the repository at this point in the history
  • Loading branch information
markkuleinio committed Nov 25, 2019
1 parent 6901c91 commit f8e7261
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pynetbox/core/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f8e7261

Please sign in to comment.