Skip to content

Commit

Permalink
[6.15.z] Fix validation: validate IPv6 proxy URL only when IS_IPV6 is…
Browse files Browse the repository at this point in the history
… set to True (#15423)

Fix validation: validate IPv6 proxy URL only when IS_IPV6 is set to True (#15413)

(cherry picked from commit 90ffb9b)

Co-authored-by: Ondřej Gajdušek <[email protected]>
  • Loading branch information
Satellite-QE and ogajduse authored Jun 17, 2024
1 parent 73fb2a4 commit 8ef8841
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 8ef8841

Please sign in to comment.