mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-04-28 03:21:12 +00:00
perf: Use a domain account to avoid automatically creating a local account
This commit is contained in:
parent
9667a3d340
commit
dd2366532c
@ -179,7 +179,6 @@ class Applet(JMSBaseModel):
|
||||
if host_matched:
|
||||
return random.choice(host_matched)
|
||||
|
||||
hosts = [h for h in hosts if h.auto_create_accounts]
|
||||
prefer_key = self.host_prefer_key_tpl.format(user.id)
|
||||
prefer_host_id = cache.get(prefer_key, None)
|
||||
pref_host = [host for host in hosts if host.id == prefer_host_id]
|
||||
|
Loading…
Reference in New Issue
Block a user