File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -697,7 +697,7 @@ export class OdoImpl implements Odo {
697697
698698 public async getComponentTypeVersions ( componentName : string ) : Promise < string [ ] > {
699699 const result : cliInstance . CliExitData = await this . execute ( Command . listCatalogComponentsJson ( ) ) ;
700- const items = this . loadItems < ComponentType > ( result ) . filter ( ( value ) => value . metadata . name === componentName ) ;
700+ const items = this . loadItems < ComponentType > ( result , ( json ) => json . s2iItems ) . filter ( ( value ) => value . metadata . name === componentName ) ;
701701 return items . length > 0 ? items [ 0 ] . spec . allTags : [ ] ;
702702 }
703703
Original file line number Diff line number Diff line change @@ -448,7 +448,7 @@ suite("odo", () => {
448448 const odoCatalog = JSON . stringify ( {
449449 kind : "ComponentTypeList" ,
450450 apiVersion : "odo.openshift.io/v1alpha1" ,
451- items : [
451+ s2iItems : [
452452 {
453453 kind : "ComponentType" ,
454454 apiVersion : "odo.openshift.io/v1alpha1" ,
You can’t perform that action at this time.
0 commit comments