Remove redundant check for 'vminterface' in assigned_object_parent

This commit is contained in:
Jan Krupa 2024-11-11 09:55:34 +01:00 committed by GitHub
parent 494d410847
commit e45130066b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -155,8 +155,6 @@ class L2VPNTermination(NetBoxModel):
return self.assigned_object.virtual_machine
elif obj_type.model == 'interface':
return self.assigned_object.device
elif obj_type.model == 'vminterface':
return self.assigned_object.virtual_machine
return None
@property