From fabad26bbe2ff915d37000aaaa0b42d724c0a6d6 Mon Sep 17 00:00:00 2001 From: Olivier Wulveryck Date: Sun, 13 Dec 2015 10:10:15 +0100 Subject: [PATCH] TaskShow does not work --- executor/node.go | 2 ++ executor/webhandler.go | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/executor/node.go b/executor/node.go index 9a9dcd3..d600628 100644 --- a/executor/node.go +++ b/executor/node.go @@ -10,4 +10,6 @@ type node orchestrator.Node // Run actually launch the engine to run the node func (n *node) Run() { log.Printf("Running %v with engine %v, artifact %v and args %v", n.Name, n.Engine, n.Artifact, n.Args) + n.State = orchestrator.Success + log.Println(n.State) } diff --git a/executor/webhandler.go b/executor/webhandler.go index e5ad576..c1842f8 100644 --- a/executor/webhandler.go +++ b/executor/webhandler.go @@ -41,7 +41,6 @@ func TaskShow(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) if err := json.NewEncoder(w).Encode(v); err != nil { panic(err) - } return } else {