Skip to content

Commit

Permalink
fix app proxy installation (#571)
Browse files Browse the repository at this point in the history
* fix-app-proxy-installation
  • Loading branch information
roi-codefresh authored Oct 13, 2020
1 parent 455ec63 commit 62eef63
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/interface/cli/commands/app-proxy/install.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion lib/interface/cli/commands/app-proxy/uninstall.cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)} `);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codefresh",
"version": "0.73.4",
"version": "0.73.5",
"description": "Codefresh command line utility",
"main": "index.js",
"preferGlobal": true,
Expand Down

0 comments on commit 62eef63

Please sign in to comment.