Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response object lookup fails in some cases #660

Open
srfwx opened this issue Dec 6, 2024 · 0 comments · May be fixed by #661
Open

Response object lookup fails in some cases #660

srfwx opened this issue Dec 6, 2024 · 0 comments · May be fixed by #661
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@srfwx
Copy link
Contributor

srfwx commented Dec 6, 2024

pynetbox version

v7.4.1

NetBox version

v4.1.7

Python version

3.10

Steps to Reproduce

import pynetbox
from pynetbox.models.virtualization import VirtualMachines

nb = pynetbox.api(url="https://netbox.example.com", token="my-token")
vms = nb.virtualization.virtual_machines.filter(limit=1, offset=0)
for vm in vms:
    assert isinstance(vm, VirtualMachines)

Expected Behavior

type of vm object should be VirtualMachines

Observed Behavior

type of vm object returned is Record

@srfwx srfwx added the type: bug A confirmed report of unexpected behavior in the application label Dec 6, 2024
@srfwx srfwx linked a pull request Dec 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant