Skip to content

Response object lookup fails in some cases #660

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

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
severity: low Does not significantly disrupt application functionality, or a workaround is available status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation 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
@arthanson arthanson added severity: low Does not significantly disrupt application functionality, or a workaround is available status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation labels Apr 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: needs owner This issue is tentatively accepted pending a volunteer committed to its implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants