mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-01 17:22:11 +00:00
[Bugfix] 修复资产没有管理用户时获取connectivity字段失败的bug
This commit is contained in:
parent
9a5c00e148
commit
d563216e3f
@ -250,6 +250,8 @@ class Asset(OrgModelMixin):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def connectivity(self):
|
def connectivity(self):
|
||||||
|
if not self.admin_user:
|
||||||
|
return self.UNKNOWN
|
||||||
return self.admin_user.get_connectivity_of(self)
|
return self.admin_user.get_connectivity_of(self)
|
||||||
|
|
||||||
@connectivity.setter
|
@connectivity.setter
|
||||||
|
Loading…
Reference in New Issue
Block a user