mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-12 13:31:56 +00:00
fix(system_user): 修复系统用户测试可连接性失败问题(所有资产)(不应该执行校验系统用户是否可以推送的逻辑)
This commit is contained in:
@@ -31,7 +31,10 @@ def test_system_user_connectivity_util(system_user, assets, task_name):
|
|||||||
"""
|
"""
|
||||||
from ops.utils import update_or_create_ansible_task
|
from ops.utils import update_or_create_ansible_task
|
||||||
|
|
||||||
hosts = clean_ansible_task_hosts(assets, system_user=system_user)
|
# hosts = clean_ansible_task_hosts(assets, system_user=system_user)
|
||||||
|
# TODO: 这里不传递系统用户,因为clean_ansible_task_hosts会通过system_user来判断是否可以推送,
|
||||||
|
# 不符合测试可连接性逻辑, 后面需要优化此逻辑
|
||||||
|
hosts = clean_ansible_task_hosts(assets)
|
||||||
if not hosts:
|
if not hosts:
|
||||||
return {}
|
return {}
|
||||||
platform_hosts_map = {}
|
platform_hosts_map = {}
|
||||||
|
Reference in New Issue
Block a user