Skip to content

Commit

Permalink
Merge pull request #207 from markkuleinio/fix-206
Browse files Browse the repository at this point in the history
Skip params if url_override set in Request._make_call()
  • Loading branch information
Zach Moody authored Nov 26, 2019
2 parents 6901c91 + f8e7261 commit 1c55ff1
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 1c55ff1

Please sign in to comment.