customizations
customizations copied to clipboard
add_device_type_components not working
An exception occurred: TypeError: RearPortTemplate.instantiate() takes 1 positional argument but 2 were given
Traceback (most recent call last):
File "/opt/netbox/netbox/extras/scripts.py", line 461, in _run_script
script.output = script.run(data=data, commit=commit)
File "/etc/netbox/scripts/add_device_type_components.py", line 44, in run
items = [
File "/etc/netbox/scripts/add_device_type_components.py", line 45, in <listcomp>
x.instantiate(device)
TypeError: RearPortTemplate.instantiate() takes 1 positional argument but 2 were given
Getting this error on v3.2.7
File "/etc/netbox/scripts/add_device_type_components.py"
There's a bug in your custom script. FYI device component templates aren't meant to be instantiated directly.
File "/etc/netbox/scripts/add_device_type_components.py"
There's a bug in your custom script. FYI device component templates aren't meant to be instantiated directly.
Yes, I know, but it is a script from this repo.
Oh ha, sorry. Was going through my notifications and missed what repo this was in.
fixed in #68