there is an error when printing a Virtual Chassis Record
print(record)
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/ansible/devel/nautobot-transfer/lib/python3.8/site-packages/pynautobot/models/dcim.py", line 151, in __str__
return self.master.display_name
AttributeError: 'NoneType' object has no attribute 'display_name'
I could see that the Nautobot API returns the field name instead of display_name
I'll filing a pull request with changes pynautobot/pynautobot/models/dcim.py from
class VirtualChassis(Record):
def __str__(self):
return self.master.display_name
to
class VirtualChassis(Record):
def __str__(self):
if self.master is None:
return self.name
else:
return self.master.display_name
there is an error when printing a Virtual Chassis Record
I could see that the Nautobot API returns the field
name
instead ofdisplay_name
I'll filing a pull request with changes
pynautobot/pynautobot/models/dcim.py
fromto