8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-27 07:02:26 +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 @cached_property
def get_name(self): 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 @cached_property
def get_radius_key(self): def get_radius_key(self):