From 4fe0d1d26f931182955d5c1c7c64cb70e4377fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Gajdu=C5=A1ek?= Date: Mon, 17 Jun 2024 11:32:52 +0200 Subject: [PATCH] [6.13.z] Fix validation: validate IPv6 proxy URL only when IS_IPV6 is set to True (#15424) Fix validation: validate IPv6 proxy URL only when IS_IPV6 is set to True (#15413) (cherry picked from commit 90ffb9b671af4a9ae74fedb4f2468df05f4d024f) --- robottelo/config/validators.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/robottelo/config/validators.py b/robottelo/config/validators.py index 111ab2f2ad0..09b33824f63 100644 --- a/robottelo/config/validators.py +++ b/robottelo/config/validators.py @@ -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),