diff --git a/cmd/edgeboxctl/main.go b/cmd/edgeboxctl/main.go index 427910c..64e2bf1 100644 --- a/cmd/edgeboxctl/main.go +++ b/cmd/edgeboxctl/main.go @@ -52,7 +52,7 @@ func main() { task.ID = 0 task.Task = "start_edgeapp" task.Args = sql.NullString{String: fmt.Sprintf("{\"id\": \"%s\"}", c.Args().First()), Valid: true} - task.Status = string(tasks.STATUS_CREATED) + task.Status = fmt.Sprintf("%d", tasks.STATUS_CREATED) task.Created = currentFormattedTime task.Updated = currentFormattedTime @@ -70,7 +70,7 @@ func main() { task.ID = 0 task.Task = "stop_edgeapp" task.Args = sql.NullString{String: fmt.Sprintf("{\"id\": \"%s\"}", c.Args().First()), Valid: true} - task.Status = string(tasks.STATUS_CREATED) + task.Status = fmt.Sprintf("%d", tasks.STATUS_CREATED) task.Created = currentFormattedTime task.Updated = currentFormattedTime task = tasks.ExecuteTask(task)