From 1c400f15782ce40227d46fdc8adfd3b7d9580598 Mon Sep 17 00:00:00 2001 From: zachmoody Date: Wed, 20 Dec 2017 10:21:55 -0600 Subject: [PATCH] fixed docstrings with old api style. --- pynetbox/lib/endpoint.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pynetbox/lib/endpoint.py b/pynetbox/lib/endpoint.py index 85e1a780..7ab294da 100644 --- a/pynetbox/lib/endpoint.py +++ b/pynetbox/lib/endpoint.py @@ -143,7 +143,7 @@ def get(self, *args, **kwargs): Referencing with an id. - >>> nb.devices.get(1) + >>> nb.dcim.devices.get(1) test1-edge1 >>> """ @@ -193,13 +193,13 @@ def filter(self, *args, **kwargs): To return a list of objects matching a named argument filter. - >>> nb.devices.filter(role='leaf-switch') + >>> nb.dcim.devices.filter(role='leaf-switch') [test1-a3-tor1b, test1-a3-tor1c, test1-a3-tor1d, test1-a3-tor2a] >>> Using a freeform query along with a named argument. - >>> nb.devices.filter('a3', role='leaf-switch') + >>> nb.dcim.devices.filter('a3', role='leaf-switch') [test1-a3-tor1b, test1-a3-tor1c, test1-a3-tor1d, test1-a3-tor2a] >>>