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):
20
20
logger .error (msg )
21
21
raise OpCourierBadYaml (msg )
22
22
else :
23
- artifact_type , artifact_name = None , None
23
+ artifact_type = None
24
24
if isinstance (operatorArtifact , dict ):
25
25
if "packageName" in operatorArtifact :
26
26
artifact_type = "Package"
27
- artifact_name = operatorArtifact ['packageName' ]
28
27
elif operatorArtifact .get ("kind" ) in ("ClusterServiceVersion" ,
29
28
"CustomResourceDefinition" ):
30
29
artifact_type = operatorArtifact ["kind" ]
31
- artifact_name = operatorArtifact ['metadata' ]['name' ]
32
30
if artifact_type is not None :
33
- logger .info ('Parsed %s: %s' , artifact_type , artifact_name )
34
31
return artifact_type
35
32
36
33
msg = 'Courier requires valid CSV, CRD, and Package files'
You can’t perform that action at this time.
0 commit comments