Skip to content

Commit

Permalink
Corrected typo
Browse files Browse the repository at this point in the history
Signed-off-by: Amrita Mahapatra <[email protected]>
  • Loading branch information
amr1ta committed Jan 8, 2025
1 parent b94bacb commit 2250b23
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions ocs_ci/deployment/mce.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,10 @@ def create_mce_catalog_source(self):
resource_name=constants.MCE_CATSRC_NAME,
namespace=constants.MARKETPLACE_NAMESPACE,
)
# Wait for catalog source is ready
mce_catalog_source.wait_for_state("READY")
else:
logger.info("catalogsource exists")
logger.info("Check the image for MCE")
if not mce_catalog_source_data["spec"]["image"] == config.ENV_DATA.get(
"mce_image"
):
mce_catalog_source_data["spec"]["image"] = config.ENV_DATA.get(
"mce_image"
)

# Wait for catalog source is ready
mce_catalog_source.wait_for_state("READY")

def create_mce_namespace(self):
"""
Expand Down Expand Up @@ -128,9 +120,11 @@ def create_mce_subscription(self):
mce_subscription_yaml_data["spec"][
"source"
] = constants.OPERATOR_CATALOG_SOURCE_NAME
mce_sub_channel = "stable-2.7"
mce_channel = "stable"
else:
mce_channel = config.DEPLOYMENT.get("mce_channel")

mce_subscription_yaml_data["spec"]["channel"] = f"{mce_sub_channel}"
mce_subscription_yaml_data["spec"]["channel"] = mce_channel
mce_subscription_manifest = tempfile.NamedTemporaryFile(
mode="w+", prefix="mce_subscription_manifest", delete=False
)
Expand Down

0 comments on commit 2250b23

Please sign in to comment.