File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed
lib/interface/cli/commands/agent Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,15 @@ const unInstallAgentCmd = new Command({
5252 }
5353
5454
55- await sdk . agents . unInstall ( {
56- name,
55+ const exitCode = await sdk . agents . unInstall ( {
5756 kubeContextName,
5857 kubeNamespace,
58+ kubeConfigPath,
5959 terminateProcess : false ,
6060 } ) ;
61- await deleteAgent . handler ( { name, id : name } ) ;
61+ if ( exitCode === 0 ) {
62+ await deleteAgent . handler ( { name, id : name } ) ;
63+ }
6264 process . exit ( 0 ) ;
6365 } ,
6466} ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " codefresh" ,
3- "version" : " 0.43.2 " ,
3+ "version" : " 0.43.3 " ,
44
55 "description" : " Codefresh command line utility" ,
66 "main" : " index.js" ,
3838 "cf-errors" : " ^0.1.12" ,
3939 "chalk" : " ^1.1.3" ,
4040 "cli-progress" : " ^1.6.1" ,
41- "codefresh-sdk" : " 1.4.7 " ,
41+ "codefresh-sdk" : " 1.4.8 " ,
4242 "colors" : " ^1.1.2" ,
4343 "columnify" : " ^1.5.4" ,
4444 "compare-versions" : " ^3.4.0" ,
Original file line number Diff line number Diff line change @@ -1186,10 +1186,10 @@ code-point-at@^1.0.0:
11861186 resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
11871187 integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=
11881188
1189- 1190- version "1.4.7 "
1191- resolved "https://registry.yarnpkg.com/codefresh-sdk/-/codefresh-sdk-1.4.7 .tgz#f2be10350dc2775b2a563253cdeed3e2eb7989d0 "
1192- integrity sha512-+bg1/mNoT5mjck9karv383UPg+gFqWdnDKgiwof2garBN9LGhRtNjxVMK3SR3eArUYKbhUXy9Bx5dCjaPWnODg ==
1189+ 1190+ version "1.4.8 "
1191+ resolved "https://registry.yarnpkg.com/codefresh-sdk/-/codefresh-sdk-1.4.8 .tgz#d69cd8a6e3d6779dcccdee983d963ad3ff18fb8c "
1192+ integrity sha512-vNZAXrzsXWlw9EU84tmudETj1chpS9yX+XuEn+9CfC7fuHH8yYHMYCfxObdHXfGHdME1FVFsq9pf5TJ7du2qwQ ==
11931193 dependencies :
11941194 bluebird "^3.5.3"
11951195 cf-errors "^0.1.12"
@@ -7181,7 +7181,6 @@ yallist@^3.0.2:
71817181 resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
71827182 integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
71837183
7184-
71857184yargs-parser@^13.0.0 :
71867185 version "13.1.1"
71877186 resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-13.1.1.tgz#d26058532aa06d365fe091f6a1fc06b2f7e5eca0"
You can’t perform that action at this time.
0 commit comments