diff --git a/tests/libtest/test_provider_create_hosted_cluster.py b/tests/libtest/test_provider_create_hosted_cluster.py index dd36be7be8af..dd0ef7fa484e 100644 --- a/tests/libtest/test_provider_create_hosted_cluster.py +++ b/tests/libtest/test_provider_create_hosted_cluster.py @@ -158,9 +158,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 @@ -194,9 +192,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