This commit is contained in:
kkthxbye-code 2022-05-10 17:53:01 +02:00
parent af126fe7e3
commit d858eceb38

View File

@ -718,7 +718,7 @@ class ModuleForm(NetBoxModelForm):
raise forms.ValidationError( raise forms.ValidationError(
f"Cannot adopt {template.component_model.__name__} '{resolved_name}' as it already belongs to a module" f"Cannot adopt {template.component_model.__name__} '{resolved_name}' as it already belongs to a module"
) )
# If we are not adopting components we error if the component exists # If we are not adopting components we error if the component exists
if not adopt_components and resolved_name in installed_components: if not adopt_components and resolved_name in installed_components:
raise forms.ValidationError( raise forms.ValidationError(