diff --git a/robottelo/host_helpers/satellite_mixins.py b/robottelo/host_helpers/satellite_mixins.py index 73d1280c6c0..bce360b8657 100644 --- a/robottelo/host_helpers/satellite_mixins.py +++ b/robottelo/host_helpers/satellite_mixins.py @@ -246,7 +246,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}' )