diff --git a/apps/terminal/models/applet/applet.py b/apps/terminal/models/applet/applet.py index 8b91c7b5f..783e09e1d 100644 --- a/apps/terminal/models/applet/applet.py +++ b/apps/terminal/models/applet/applet.py @@ -178,7 +178,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)