Skip to content

Commit

Permalink
Update import path in contest.py
Browse files Browse the repository at this point in the history
Signed-off-by: bingwang <[email protected]>
  • Loading branch information
bingwang-ms committed Jan 17, 2021
1 parent 2679faf commit 3ef5fb2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from tests.common.helpers.dut_utils import is_supervisor_node, is_frontend_node


from tests.common.connections import ConsoleHost
from tests.common.connections.console_host import ConsoleHost


logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -245,7 +245,7 @@ def k8smasters(ansible_adhoc, request):
"""
Shortcut fixture for getting Kubernetes master hosts
"""
k8s_master_ansible_group = request.config.getoption("--kube_master")
k8s_master_ansible_group = request.config.getoption("--kube_master")
master_vms = {}
inv_files = request.config.getoption("ansible_inventory")
for inv_file in inv_files:
Expand All @@ -256,7 +256,7 @@ def k8smasters(ansible_adhoc, request):
for hostname, attributes in k8sinventory[k8s_master_ansible_group]['hosts'].items():
if 'haproxy' in attributes:
is_haproxy = True
else:
else:
is_haproxy = False
master_vms[hostname] = {'host': K8sMasterHost(ansible_adhoc,
hostname,
Expand Down Expand Up @@ -766,10 +766,10 @@ def generate_priority_lists(request, prio_scope):
info = json.load(yf)
except IOError as e:
return empty

if tbname not in info:
return empty

dut_prio = info[tbname]
ret = []

Expand Down

0 comments on commit 3ef5fb2

Please sign in to comment.