[Update] 修改测试系统用户显示

pull/3796/head
ibuler 2020-03-19 11:47:39 +08:00
parent 0b7a90b83c
commit b8d0272e37
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ def test_system_user_connectivity_util(system_user, assets, task_name):
)
def run_task(_tasks, _hosts, _username):
old_name = "({})".format(system_user.username)
new_name = "({})".format(_username)
old_name = "{}".format(system_user)
new_name = "{}({})".format(system_user.name, _username)
_task_name = task_name.replace(old_name, new_name)
_task, created = update_or_create_ansible_task(
task_name=_task_name, hosts=_hosts, tasks=_tasks,