mirror of https://github.com/jumpserver/jumpserver
parent
e3d1474b9b
commit
7b9523d6be
|
@ -139,7 +139,9 @@ class JMSInventory:
|
||||||
return host
|
return host
|
||||||
|
|
||||||
def select_account(self, asset):
|
def select_account(self, asset):
|
||||||
accounts = list(asset.accounts.all())
|
accounts = list(asset.accounts.all(is_active=True))
|
||||||
|
if not accounts:
|
||||||
|
return None
|
||||||
account_selected = None
|
account_selected = None
|
||||||
account_usernames = self.account_prefer
|
account_usernames = self.account_prefer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue