From 08f5b260b3b1feb4b17ea51ae69fe8d84c03893c Mon Sep 17 00:00:00 2001 From: dosas Date: Tue, 25 Jun 2024 10:45:17 +0200 Subject: [PATCH] Adapt to changes in broker stderr handling (#15442) --- robottelo/host_helpers/satellite_mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robottelo/host_helpers/satellite_mixins.py b/robottelo/host_helpers/satellite_mixins.py index d73820839bd..70c37beb205 100644 --- a/robottelo/host_helpers/satellite_mixins.py +++ b/robottelo/host_helpers/satellite_mixins.py @@ -248,7 +248,7 @@ def available_capsule_port(self): f"ss -tnaH sport ge {port_pool[0]} sport le {port_pool[-1]}" " | awk '{n=split($4, p, \":\"); print p[n]}' | sort -u" ) - if ss_cmd.stderr[1]: + if ss_cmd.stderr: raise CapsuleTunnelError( f'Failed to create ssh tunnel: Error getting port status: {ss_cmd.stderr}' )