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({
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 ,
Original file line number Diff line number Diff 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 ) } ` ) ;
Original file line number Diff line number Diff line change 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 ,
You can’t perform that action at this time.
0 commit comments