fix(admin_user): 修复管理用户单独测试某台资产可连接性失败的情况(private_key_file)

This commit is contained in:
Bai
2020-07-17 14:47:05 +08:00
committed by 老广
parent 5c67f4311d
commit 0855696f10

View File

@@ -85,7 +85,7 @@ def test_asset_user_connectivity_util(asset_user, task_name):
raw, summary = test_user_connectivity(
task_name=task_name, asset=asset_user.asset,
username=asset_user.username, password=asset_user.password,
private_key=asset_user.private_key
private_key=asset_user.private_key_file
)
except Exception as e:
logger.warn("Failed run adhoc {}, {}".format(task_name, e))