8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 07:23:46 +00:00

Fix switch creation

This commit is contained in:
Hugo LEVY-FALK 2019-01-01 20:17:27 +01:00
parent 71dc9c9bd1
commit 21f54486b2

View file

@ -304,7 +304,7 @@ class Switch(AclMixin, Machine):
@cached_property
def get_name(self):
return self.name or self.main_interface().domain.name
return self.name or getattr(self.main_interface(), 'domain', 'Unknown')
@cached_property
def get_radius_key(self):