From dcca447def80d02438ff46ee5951f35bc56b8ada Mon Sep 17 00:00:00 2001 From: Wenlin Huang Date: Thu, 2 May 2019 15:10:20 -0400 Subject: [PATCH] Remove logging for identify --- operatorcourier/identify.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/operatorcourier/identify.py b/operatorcourier/identify.py index b8b10af..811bfc9 100644 --- a/operatorcourier/identify.py +++ b/operatorcourier/identify.py @@ -20,17 +20,14 @@ def get_operator_artifact_type(operatorArtifactString): logger.error(msg) raise OpCourierBadYaml(msg) else: - artifact_type, artifact_name = None, None + artifact_type = None if isinstance(operatorArtifact, dict): if "packageName" in operatorArtifact: artifact_type = "Package" - artifact_name = operatorArtifact['packageName'] elif operatorArtifact.get("kind") in ("ClusterServiceVersion", "CustomResourceDefinition"): artifact_type = operatorArtifact["kind"] - artifact_name = operatorArtifact['metadata']['name'] if artifact_type is not None: - logger.info('Parsed %s: %s', artifact_type, artifact_name) return artifact_type msg = 'Courier requires valid CSV, CRD, and Package files'