From 42c1f398c55b00012aabfec7c3894607a44faaf4 Mon Sep 17 00:00:00 2001 From: Jeff Lu Date: Thu, 20 Apr 2023 09:56:23 -0400 Subject: [PATCH] add replaceEnvTokens in installCliInContainer --- package.json | 2 +- src/common/src/utils.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 43924c5..5ae1b84 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hzn-cli", - "version": "0.4.28", + "version": "0.4.29", "description": "Open Horizon CLI toolkit helps streamline the process of preparing node agents and perform tasks between orgs environments", "main": "./build/index.js", "bin": { diff --git a/src/common/src/utils.ts b/src/common/src/utils.ts index 5ccb660..5877746 100644 --- a/src/common/src/utils.ts +++ b/src/common/src/utils.ts @@ -270,7 +270,8 @@ export class Utils { installCliInContainer(configJson: any) { return new Observable((observer) => { if(configJson.cliInContainer) { - this.shell(configJson.cliInContainer) + let containerStr = this.replaceEnvTokens(configJson.cliInContainer, configJson.org) + this.shell(containerStr) .subscribe({ complete: () => { observer.next()