Skip to content

Commit

Permalink
[6.13.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 (#15424)

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

(cherry picked from commit 90ffb9b)
  • Loading branch information
ogajduse authored Jun 17, 2024
1 parent 201cb40 commit 4fe0d1d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions robottelo/config/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
Validator('server.ssh_username', default='root'),
Validator('server.ssh_password', default=None),
Validator('server.verify_ca', default=False),
Validator('server.is_ipv6', is_type_of=bool, default=False),
# 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 4fe0d1d

Please sign in to comment.