Skip to content

Commit 4f911bd

Browse files
authored
Merge pull request #123 from jeremylinlin/remove-logging-for-identify
Remove logging for identify
2 parents e4409c1 + dcca447 commit 4f911bd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

operatorcourier/identify.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,14 @@ def get_operator_artifact_type(operatorArtifactString):
2020
logger.error(msg)
2121
raise OpCourierBadYaml(msg)
2222
else:
23-
artifact_type, artifact_name = None, None
23+
artifact_type = None
2424
if isinstance(operatorArtifact, dict):
2525
if "packageName" in operatorArtifact:
2626
artifact_type = "Package"
27-
artifact_name = operatorArtifact['packageName']
2827
elif operatorArtifact.get("kind") in ("ClusterServiceVersion",
2928
"CustomResourceDefinition"):
3029
artifact_type = operatorArtifact["kind"]
31-
artifact_name = operatorArtifact['metadata']['name']
3230
if artifact_type is not None:
33-
logger.info('Parsed %s: %s', artifact_type, artifact_name)
3431
return artifact_type
3532

3633
msg = 'Courier requires valid CSV, CRD, and Package files'

0 commit comments

Comments
 (0)