Skip to content

Commit 0578648

Browse files
author
Zach Moody
authored
Merge pull request #27 from digitalocean/fix-docstring-fail
fixed docstrings with old api style.
2 parents b5d31d1 + 1c400f1 commit 0578648

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pynetbox/lib/endpoint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def get(self, *args, **kwargs):
143143
144144
Referencing with an id.
145145
146-
>>> nb.devices.get(1)
146+
>>> nb.dcim.devices.get(1)
147147
test1-edge1
148148
>>>
149149
"""
@@ -193,13 +193,13 @@ def filter(self, *args, **kwargs):
193193
194194
To return a list of objects matching a named argument filter.
195195
196-
>>> nb.devices.filter(role='leaf-switch')
196+
>>> nb.dcim.devices.filter(role='leaf-switch')
197197
[test1-a3-tor1b, test1-a3-tor1c, test1-a3-tor1d, test1-a3-tor2a]
198198
>>>
199199
200200
Using a freeform query along with a named argument.
201201
202-
>>> nb.devices.filter('a3', role='leaf-switch')
202+
>>> nb.dcim.devices.filter('a3', role='leaf-switch')
203203
[test1-a3-tor1b, test1-a3-tor1c, test1-a3-tor1d, test1-a3-tor2a]
204204
>>>
205205

0 commit comments

Comments
 (0)