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({
52
52
}
53
53
54
54
55
- await sdk . agents . unInstall ( {
56
- name,
55
+ const exitCode = await sdk . agents . unInstall ( {
57
56
kubeContextName,
58
57
kubeNamespace,
58
+ kubeConfigPath,
59
59
terminateProcess : false ,
60
60
} ) ;
61
- await deleteAgent . handler ( { name, id : name } ) ;
61
+ if ( exitCode === 0 ) {
62
+ await deleteAgent . handler ( { name, id : name } ) ;
63
+ }
62
64
process . exit ( 0 ) ;
63
65
} ,
64
66
} ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codefresh" ,
3
- "version" : " 0.43.2 " ,
3
+ "version" : " 0.43.3 " ,
4
4
5
5
"description" : " Codefresh command line utility" ,
6
6
"main" : " index.js" ,
38
38
"cf-errors" : " ^0.1.12" ,
39
39
"chalk" : " ^1.1.3" ,
40
40
"cli-progress" : " ^1.6.1" ,
41
- "codefresh-sdk" : " 1.4.7 " ,
41
+ "codefresh-sdk" : " 1.4.8 " ,
42
42
"colors" : " ^1.1.2" ,
43
43
"columnify" : " ^1.5.4" ,
44
44
"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:
1186
1186
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
1187
1187
integrity sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=
1188
1188
1189
- codefresh-sdk@1.4.7 :
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
+ codefresh-sdk@1.4.8 :
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 ==
1193
1193
dependencies :
1194
1194
bluebird "^3.5.3"
1195
1195
cf-errors "^0.1.12"
@@ -7181,7 +7181,6 @@ yallist@^3.0.2:
7181
7181
resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd"
7182
7182
integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==
7183
7183
7184
-
7185
7184
yargs-parser@^13.0.0 :
7186
7185
version "13.1.1"
7187
7186
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