mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-29 11:23:17 +00:00
Merge pull request #9674 from jumpserver/pr@dev@fix_applethost
fix: 未激活的发布机,将无法使用
This commit is contained in:
commit
d2deaf10d1
@ -111,7 +111,8 @@ class Applet(JMSBaseModel):
|
|||||||
return instance
|
return instance
|
||||||
|
|
||||||
def select_host_account(self):
|
def select_host_account(self):
|
||||||
hosts = list(self.hosts.all())
|
# 选择激活的发布机
|
||||||
|
hosts = list(self.hosts.filter(is_active=True).all())
|
||||||
if not hosts:
|
if not hosts:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user