Duplicate "Custom fields" model found #6281
Unanswered
bitcollector1
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I am guessing this warning comes from the halutz library?? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
NetBox version
v2.11
Python version
3.8
Steps to Reproduce
When running commands from jupyter notebook I get the warning that "Duplicate "Custom fields" model found". Curious if I can find some help to get rid of this warning. Everything seems to work but I was hoping to get some input on what I'm seeing.....so maybe not really a bug.....but I did create custom data fields so figured I'd post.
from halutz.client import Client
from requests.sessions import Session
import json
import warnings
warnings.filterwarnings('ignore')
my_session = Session()
my_session.headers['Authorization'] = "Token xxxxxxxxxxxxxxxxxxxxxxxxx"
my_api_url = 'https://netdevbox.xxx.xxx.com'
my_api_doc_url = my_api_url + "/api/docs?format=openapi"
my_session.verify = False
client = Client(server_url=my_api_url,
origin_spec=my_session.get(my_api_doc_url).json(),
session=my_session)
Expected Behavior
I did not expect to see the Duplicate Custom Fields model found.
Observed Behavior
Saw the following error:
Beta Was this translation helpful? Give feedback.
All reactions