From aaab29274989e6b27f75629d3ee1cbc8f0fb4242 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 cb4e3ec2974..6f412564a1a 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