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

Writing Non-Integer Value to Integer Custom Field via API #1703

Closed
cimnine opened this issue Nov 14, 2017 · 0 comments
Closed

Writing Non-Integer Value to Integer Custom Field via API #1703

cimnine opened this issue Nov 14, 2017 · 0 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@cimnine
Copy link
Contributor

cimnine commented Nov 14, 2017

Issue type

[ ] Feature request
[X] Bug report
[ ] Documentation

Environment

  • Python version: 3.4
  • NetBox version: 2.2.4

Description

  • Create a custom field of type "Integer"
  • Use the API to write 4-21761 to the custom field
  • Receive a nice error when you like to access that same entity again:
<class 'ValueError'>

invalid literal for int() with base 10: '4-21761'

Expectation

Instead of receiving an error when accessing the entity later on, I'd like to get an error when trying to write a non-integer value to a custom field of type "Integer".

@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Nov 14, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants