mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-12 23:27:23 +00:00
fixed assignment too early issue
This commit is contained in:
parent
7fc3367ba6
commit
ee851d333c
@ -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 = (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user