We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I tried to create ip-address netbox with below:
self.netbox.ipam.ip_addresses.create( address=host[0], tags=[{"name": self.tag}], # dns_name=host[1], description=host[1] )
I got a error: pynetbox.core.query.RequestError: The request failed with code 400 Bad Request: {'tags': ['All list items must be of string type.']}
pynetbox.core.query.RequestError: The request failed with code 400 Bad Request: {'tags': ['All list items must be of string type.']}
we have to change dict inside list to simple list without dict #tags=[{"name": self.tag}], with tags=[self.tag],
#tags=[{"name": self.tag}],
tags=[self.tag],
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue
When I tried to create ip-address netbox with below:
I got a error:
pynetbox.core.query.RequestError: The request failed with code 400 Bad Request: {'tags': ['All list items must be of string type.']}
How does it solve?
we have to change dict inside list to simple list without dict
#tags=[{"name": self.tag}],
with
tags=[self.tag],
Proof
The text was updated successfully, but these errors were encountered: