Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
guo xiaoyong
Jumpserver
Commits
8c724019
Commit
8c724019
authored
4 years ago
by
Bai
Browse files
Options
Download
Email Patches
Plain Diff
fix(system_user): 修复系统用户测试可连接性失败问题(所有资产)(不应该执行校验系统用户是否可以推送的逻辑)
parent
b622aca9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/assets/tasks/system_user_connectivity.py
+4
-1
apps/assets/tasks/system_user_connectivity.py
with
4 additions
and
1 deletion
+4
-1
apps/assets/tasks/system_user_connectivity.py
+
4
-
1
View file @
8c724019
...
...
@@ -31,7 +31,10 @@ def test_system_user_connectivity_util(system_user, assets, task_name):
"""
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
:
return
{}
platform_hosts_map
=
{}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment