Skip to content

Commit 62eef63

Browse files
fix app proxy installation (#571)
* fix-app-proxy-installation
1 parent 455ec63 commit 62eef63

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

lib/interface/cli/commands/app-proxy/install.cmd.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ const installAppProxyHandler = new Command({
151151
verbose,
152152
});
153153

154-
const re = runtimes.find(runtime => runtimeEnvironment === _.get(runtime, 'metadata.name'));
154+
const [getREErr, re] = await to(sdk.runtimeEnvs.get({ name: runtimeEnvironment }));
155+
await handleError(getREErr, 'Failed to get runtime environment');
156+
155157
const body = {
156158
appProxy: {
157159
externalIP: appProxyUrl,

lib/interface/cli/commands/app-proxy/uninstall.cmd.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ const uninstallAppProxyHandler = new Command({
133133
setValue: setValues,
134134

135135
});
136-
const re = runtimes.find(runtime => runtimeEnvironment === _.get(runtime, 'metadata.name'));
136+
const [getREErr, re] = await to(sdk.runtimeEnvs.get({ name: runtimeEnvironment }));
137+
await handleError(getREErr, 'Failed to get runtime environment');
137138
delete re.appProxy;
138139

139140
console.log(`updating runtime-environment ${colors.cyan(runtimeEnvironment)} `);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.73.4",
3+
"version": "0.73.5",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)