mirror of https://github.com/jumpserver/jumpserver
perf: applet host accounts should be inactive by default
parent
5e52d04df3
commit
e69bb9f83e
|
@ -11,7 +11,6 @@ from common.db.models import JMSBaseModel
|
|||
from common.utils import random_string
|
||||
from assets.models import Host
|
||||
|
||||
|
||||
__all__ = ['AppletHost', 'AppletHostDeployment']
|
||||
|
||||
|
||||
|
@ -95,7 +94,7 @@ class AppletHost(Host):
|
|||
account = account_model(
|
||||
username=username, secret=password, name=username,
|
||||
asset_id=self.id, secret_type='password', version=1,
|
||||
org_id=self.LOCKING_ORG
|
||||
org_id=self.LOCKING_ORG, is_active=False,
|
||||
)
|
||||
accounts.append(account)
|
||||
bulk_create_with_history(accounts, account_model, batch_size=20)
|
||||
|
|
Loading…
Reference in New Issue