Skip to content

Commit

Permalink
Update duthost_utils.py (sonic-net#13302)
Browse files Browse the repository at this point in the history
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: sonic-net#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: [email protected]
  • Loading branch information
liuh-80 authored and mssonicbld committed Jun 18, 2024
1 parent 3f0db4f commit aaab292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/common/fixtures/duthost_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aaab292

Please sign in to comment.