Skip to content

Commit

Permalink
Add IPv6 support in Centos/Oracle Host checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
shweta83 authored and Gauravtalreja1 committed Feb 6, 2025
1 parent 1efa89c commit 39865af
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pytest_fixtures/core/contenthosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@ def centos_host(request, version):
"distro": "centos",
"no_containers": True,
}
with Broker(**host_conf(request), host_class=ContentHost) as host:
with Broker(
**host_conf(request),
host_class=ContentHost,
deploy_network_type='ipv6' if settings.server.is_ipv6 else 'ipv4',
) as host:
yield host


Expand All @@ -265,7 +269,11 @@ def oracle_host(request, version):
"distro": "oracle",
"no_containers": True,
}
with Broker(**host_conf(request), host_class=ContentHost) as host:
with Broker(
**host_conf(request),
host_class=ContentHost,
deploy_network_type='ipv6' if settings.server.is_ipv6 else 'ipv4',
) as host:
yield host


Expand Down

0 comments on commit 39865af

Please sign in to comment.