File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments