pynetbox icon indicating copy to clipboard operation
pynetbox copied to clipboard

replace None with 'null' in query parameters

Open doc-sheet opened this issue 2 years ago • 3 comments

Requests skips parameters that are None. Map 'null' string to None python type for a more native coding

eg: nb.dcim.interfaces.filter(mac_address__n=None)

doc-sheet avatar Apr 24 '23 00:04 doc-sheet

Sure. Done.

doc-sheet avatar Aug 25 '23 21:08 doc-sheet

@doc-sheet Looks like the linter is failing. Please update this and let me know once its ready to review.

abhi1693 avatar Aug 28 '23 15:08 abhi1693

@abhi1693 I removed line breaks. And monkeypatch as well.

doc-sheet avatar Aug 28 '23 17:08 doc-sheet