diff --git a/src/odo.ts b/src/odo.ts index a05460166..e85354bf5 100644 --- a/src/odo.ts +++ b/src/odo.ts @@ -695,7 +695,8 @@ export class OdoImpl implements Odo { public async _getStorageNames(component: OpenShiftObject): Promise { const result: cliInstance.CliExitData = await this.execute(Command.listStorageNames(), component.contextPath ? component.contextPath.fsPath : Platform.getUserHomePath()); - return this.loadItems(result).map((value) => new OpenShiftStorage(component, value.metadata.name, value.spec.path)); + const storageList = this.loadItems(result).map((value) => new OpenShiftStorage(component, value.metadata.name, value.spec.path)); + return [...new Map(storageList.map(storage=>[storage.label, storage])).values()]; } public async getServiceOperators(): Promise {