diff --git a/lib/interface/cli/commands/app-proxy/install.cmd.js b/lib/interface/cli/commands/app-proxy/install.cmd.js index 105e0da19..a7b294af3 100644 --- a/lib/interface/cli/commands/app-proxy/install.cmd.js +++ b/lib/interface/cli/commands/app-proxy/install.cmd.js @@ -151,7 +151,9 @@ const installAppProxyHandler = new Command({ verbose, }); - const re = runtimes.find(runtime => runtimeEnvironment === _.get(runtime, 'metadata.name')); + const [getREErr, re] = await to(sdk.runtimeEnvs.get({ name: runtimeEnvironment })); + await handleError(getREErr, 'Failed to get runtime environment'); + const body = { appProxy: { externalIP: appProxyUrl, diff --git a/lib/interface/cli/commands/app-proxy/uninstall.cmd.js b/lib/interface/cli/commands/app-proxy/uninstall.cmd.js index a59c987a7..3315c70c4 100644 --- a/lib/interface/cli/commands/app-proxy/uninstall.cmd.js +++ b/lib/interface/cli/commands/app-proxy/uninstall.cmd.js @@ -133,7 +133,8 @@ const uninstallAppProxyHandler = new Command({ setValue: setValues, }); - const re = runtimes.find(runtime => runtimeEnvironment === _.get(runtime, 'metadata.name')); + const [getREErr, re] = await to(sdk.runtimeEnvs.get({ name: runtimeEnvironment })); + await handleError(getREErr, 'Failed to get runtime environment'); delete re.appProxy; console.log(`updating runtime-environment ${colors.cyan(runtimeEnvironment)} `); diff --git a/package.json b/package.json index ab76a4d59..708a8eca1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codefresh", - "version": "0.73.4", + "version": "0.73.5", "description": "Codefresh command line utility", "main": "index.js", "preferGlobal": true,