Skip to content

Commit

Permalink
Fix validation: validate IPv6 proxy URL only when IS_IPV6 is set to T…
Browse files Browse the repository at this point in the history
…rue (#15413)

(cherry picked from commit 90ffb9b)
  • Loading branch information
ogajduse authored and web-flow committed Jun 17, 2024
1 parent 73fb2a4 commit 1d34cec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion robottelo/config/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@
Validator('server.ssh_password', default=None),
Validator('server.verify_ca', default=False),
Validator('server.is_ipv6', is_type_of=bool, default=False),
Validator('server.http_proxy_ipv6_url', is_type_of=str, default=None),
# validate http_proxy_ipv6_url only if is_ipv6 is True
Validator(
'server.http_proxy_ipv6_url',
is_type_of=str,
when=Validator('server.is_ipv6', eq=True),
),
],
content_host=[
Validator('content_host.default_rhel_version', must_exist=True),
Expand Down

0 comments on commit 1d34cec

Please sign in to comment.