Skip to content

Commit

Permalink
Merged PR 5219: [bugfix] Fix the issue `'AnsibleUnicode' object has n…
Browse files Browse the repository at this point in the history
…o attribute 'extend'`

Fix the issue `'AnsibleUnicode' object has no attribute 'extend'` caused by PR [sonic-net#4987](https://dev.azure.com/mssonic/internal/_git/sonic-mgmt-int/pullrequest/4987?path=/.azure-pipelines/recover_testbed/dut_connection.py)
  • Loading branch information
yutongzhang-microsoft committed Mar 28, 2024
1 parent 57add39 commit 6d55bdd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .azure-pipelines/recover_testbed/dut_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,12 @@ def duthost_console(sonichost, conn_graph_facts, localhost):
creds = creds_on_dut(sonichost)

sonicadmin_alt_passwords = creds["ansible_altpasswords"]
sonicadmin_alt_password = sonicadmin_alt_password.extend(sonicadmin_alt_passwords)

host = ConsoleHost(console_type=console_type,
console_host=console_host,
console_port=console_port,
sonic_username=creds['sonicadmin_user'],
sonic_password=[creds['sonicadmin_password'], sonicadmin_alt_password],
sonic_password=[creds['sonicadmin_password'], sonicadmin_alt_password] + sonicadmin_alt_passwords,
console_username=console_username,
console_password=creds['console_password'][console_type])

Expand Down

0 comments on commit 6d55bdd

Please sign in to comment.