From cf87a64ce1e29d1e8b518dac95ef1e6264e170bd Mon Sep 17 00:00:00 2001 From: Daniel Osypenko Date: Sun, 7 Jul 2024 20:45:11 +0300 Subject: [PATCH] 0.26 Signed-off-by: Daniel Osypenko --- tests/libtest/test_provider_create_hosted_cluster.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/libtest/test_provider_create_hosted_cluster.py b/tests/libtest/test_provider_create_hosted_cluster.py index 5acd4aa1857e..0c93f681ce1c 100644 --- a/tests/libtest/test_provider_create_hosted_cluster.py +++ b/tests/libtest/test_provider_create_hosted_cluster.py @@ -168,9 +168,7 @@ def test_create_hosted_cluster_with_fixture( log_step("Switch to the hosted cluster") ocsci_config.switch_to_cluster_by_name(cluster_name) - server = str( - OCP().exec_oc_cmd("oc whoami --show-server", out_yaml_format=False) - ) + server = str(OCP().exec_oc_cmd("whoami --show-server", out_yaml_format=False)) assert ( cluster_name in server @@ -204,9 +202,7 @@ def test_create_destroy_hosted_cluster_with_fixture( log_step("Switch to the hosted cluster") ocsci_config.switch_to_cluster_by_name(cluster_name) - server = str( - OCP().exec_oc_cmd("oc whoami --show-server", out_yaml_format=False) - ) + server = str(OCP().exec_oc_cmd("whoami --show-server", out_yaml_format=False)) assert ( cluster_name in server