File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
lib/interface/cli/commands/app-proxy Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,9 @@ const installAppProxyHandler = new Command({
151
151
verbose,
152
152
} ) ;
153
153
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
+
155
157
const body = {
156
158
appProxy : {
157
159
externalIP : appProxyUrl ,
Original file line number Diff line number Diff line change @@ -133,7 +133,8 @@ const uninstallAppProxyHandler = new Command({
133
133
setValue : setValues ,
134
134
135
135
} ) ;
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' ) ;
137
138
delete re . appProxy ;
138
139
139
140
console . log ( `updating runtime-environment ${ colors . cyan ( runtimeEnvironment ) } ` ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.73.4 " ,
3
+ "version" : " 0.73.5 " ,
4
4
"description" : " Codefresh command line utility" ,
5
5
"main" : " index.js" ,
6
6
"preferGlobal" : true ,
You can’t perform that action at this time.
0 commit comments