Skip to content

Commit

Permalink
Merge pull request #1867 from dzhengfy/minor_fix_dict_keyerror
Browse files Browse the repository at this point in the history
test_setup: Fix dict keyerror
  • Loading branch information
chunfuwen authored Dec 10, 2018
2 parents 3812d8a + 6d3f705 commit fb81491
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions virttest/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2228,9 +2228,9 @@ def remote_session(params):
:param params: Test params dict for remote machine login details
:return: remote session object
"""
server_ip = params.get("server_ip", params["remote_ip"])
server_user = params.get("server_user", params["remote_user"])
server_pwd = params.get("server_pwd", params["remote_pwd"])
server_ip = params.get("server_ip", params.get("remote_ip"))
server_user = params.get("server_user", params.get("remote_user"))
server_pwd = params.get("server_pwd", params.get("remote_pwd"))
return remote.wait_for_login('ssh', server_ip, '22', server_user,
server_pwd, r"[\#\$]\s*$")

Expand Down

0 comments on commit fb81491

Please sign in to comment.