forked from LaconicNetwork/kompose
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:
+3
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user