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

API post new device custom_fields is and invalid keyword #1443

Closed
Atoms opened this issue Aug 21, 2017 · 3 comments
Closed

API post new device custom_fields is and invalid keyword #1443

Atoms opened this issue Aug 21, 2017 · 3 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@Atoms
Copy link

Atoms commented Aug 21, 2017

Issue type

[x] Bug report

Environment

  • Python version: 3.4
  • NetBox version: 2.1.3

Description

When using API trying to create new device with custom_fields got error:
<pre><strong>&lt;class &#39;TypeError&#39;&gt;</strong><br /> &#39;custom_fields&#39; is an invalid keyword argument for this function</pre>

Works in 2.1.2 version

@Atoms
Copy link
Author

Atoms commented Aug 21, 2017

i think this commit introduced issue: c394985

@jeremystretch
Copy link
Member

Could you provide the exact request you made please?

@Atoms
Copy link
Author

Atoms commented Aug 22, 2017

the post request i'm making:
{ "tenant": "1", "platform": "8", "name": "test1", "device_type": "6", "site": "1", "device_role": "8", "custom_fields": { "ansible_groups": "xx,yyy,zzz" } }

@jeremystretch jeremystretch added type: bug A confirmed report of unexpected behavior in the application and removed awaiting reply labels Aug 22, 2017
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 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