From 963b2656f3b2a1363344b6e13e7400cb585408ff Mon Sep 17 00:00:00 2001 From: Hua Liu <58683130+liuh-80@users.noreply.github.com> Date: Fri, 14 Jun 2024 20:35:29 +0800 Subject: [PATCH] Update duthost_utils.py (#13302) Fix import AnsibleConnectionFailure from ansible.errors issue. Why I did it In ansible the AnsibleConnectionFailure defined in 2 place: pytest_ansible.errors ansible.errors In this PR: #13277 The code should import the pytest_ansible.errors.AnsibleConnectionFailure How I did it Import AnsibleConnectionFailure from pytest_ansible.errors How to verify it Pass all test case. co-authorized by: jianquanye@microsoft.com --- tests/common/fixtures/duthost_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common/fixtures/duthost_utils.py b/tests/common/fixtures/duthost_utils.py index def4f5ce2b1..b0f28d478c4 100644 --- a/tests/common/fixtures/duthost_utils.py +++ b/tests/common/fixtures/duthost_utils.py @@ -9,7 +9,7 @@ import time import json -from ansible.errors import AnsibleConnectionFailure +from pytest_ansible.errors import AnsibleConnectionFailure from paramiko.ssh_exception import AuthenticationException from tests.common import config_reload