Skip to content

Commit 8152230

Browse files
committed
fix tox-tests by removing unused code
1 parent 4acd453 commit 8152230

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

utilities/infra.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
ResourceNotFoundError,
2424
)
2525
from ocp_resources.authentication_config_openshift_io import Authentication
26-
from ocp_resources.catalog_source import CatalogSource
2726
from ocp_resources.cluster_service_version import ClusterServiceVersion
2827
from ocp_resources.config_imageregistry_operator_openshift_io import Config
2928
from ocp_resources.config_map import ConfigMap
@@ -468,22 +467,6 @@ def login_with_user_password(api_address: str, user: str, password: str | None =
468467
return bool(re.search(r"Login successful|Logged into", out))
469468

470469

471-
@cache
472-
def is_self_managed_operator(client: DynamicClient) -> bool:
473-
"""
474-
Check if the operator is self-managed.
475-
"""
476-
if py_config["distribution"] == "upstream":
477-
return True
478-
479-
return not bool(
480-
CatalogSource(
481-
client=client,
482-
name="addon-managed-odh-catalog",
483-
namespace=py_config["applications_namespace"],
484-
).exists
485-
)
486-
487470

488471
@cache
489472
def is_managed_cluster(client: DynamicClient) -> bool:

0 commit comments

Comments
 (0)