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

KeyError when toggling interface connection status via web UI #2319

Closed
jeremystretch opened this issue Aug 7, 2018 · 0 comments
Closed

KeyError when toggling interface connection status via web UI #2319

jeremystretch opened this issue Aug 7, 2018 · 0 comments
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

Environment

  • Python version: 3.5.6
  • NetBox version: 2.4.1

Steps to Reproduce

  1. Create a connection between any two interfaces.
  2. Click the "mark planned" button on one of the interfaces to toggle the connection status.

Expected Behavior

The connection status should be updated to "planned" and the table row should change color to blue.

Observed Behavior

The connection status does get updated in the database, however the API response fails, yielding a KeyError:

...
  File "/home/jstretch/netbox/netbox/utilities/api.py", line 74, in to_representation
    return {'value': obj, 'label': self._choices[obj]}
KeyError: 'False'
@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application status: accepted This issue has been accepted for implementation labels Aug 7, 2018
@jeremystretch jeremystretch changed the title KeyError when toggling connection status via web UI KeyError when toggling interface connection status via web UI Aug 7, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

1 participant