Stopping edgeapp before removing

pull/6/head
Paulo Truta 2021-03-04 15:53:49 +00:00
parent 8f14a7cd15
commit 74cbff1966
1 changed files with 2 additions and 0 deletions

View File

@ -283,6 +283,8 @@ func taskRemoveEdgeApp(args taskRemoveEdgeAppArgs) string {
fmt.Println("Executing taskRemoveEdgeApp for " + args.ID)
// Making sure the application is stopped before setting it as removed.
edgeapps.StopEdgeApp(args.ID)
result := edgeapps.SetEdgeAppNotInstalled(args.ID)
resultJSON, _ := json.Marshal(result)