fixed assignment too early issue

This commit is contained in:
Abhimanyu Saharan 2023-01-21 13:15:12 +05:30
parent 7fc3367ba6
commit ee851d333c

View File

@ -200,6 +200,8 @@ class ACLInterfaceAssignmentSerializer(NetBoxModelSerializer):
.get_object_for_this_type(id=data["assigned_object_id"])
.virtual_machine
)
else:
interface_host = None
# Check that the associated interface's parent host has the selected ACL defined.
if acl_host != interface_host:
error_acl_not_assigned_to_host = (