Commit d563216e authored by BaiJiangJie's avatar BaiJiangJie

[Bugfix] 修复资产没有管理用户时获取connectivity字段失败的bug

parent 9a5c00e1
...@@ -250,6 +250,8 @@ class Asset(OrgModelMixin): ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment