Kompose will keep trying its job

fixes #270

all errors in undeploy method(both kubernetes and openshift) are appended in a slice of errors,
and then it will be returned after successful deletion of all components.
This commit is contained in:
Suraj Narwade
2017-03-31 14:14:14 +05:30
parent eead1cb8f7
commit 80b15c1d95
4 changed files with 50 additions and 40 deletions
+3 -1
View File
@@ -287,7 +287,9 @@ func Down(opt kobject.ConvertOptions) {
//Remove deployed application
errUndeploy := t.Undeploy(komposeObject, opt)
if errUndeploy != nil {
log.Fatalf("Error while deleting application: %s", errUndeploy)
for _, err = range errUndeploy {
log.Fatalf("Error while deleting application: %s", err)
}
}
}