From f572b14a2e273b385fc15b870f1a3214e134cc60 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Thu, 12 Oct 2017 16:57:28 -0700 Subject: [PATCH] Support script_load and script_flush as separate tokens too. --- controller/controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controller/controller.go b/controller/controller.go index d64057ab..33a845bd 100644 --- a/controller/controller.go +++ b/controller/controller.go @@ -705,7 +705,8 @@ func (c *Controller) command( res, err = c.cmdConfigSet(msg) case "config rewrite": res, err = c.cmdConfigRewrite(msg) - case "config": + case "config", "script": + // These get rewritten into "config foo" and "script bar" err = fmt.Errorf("unknown command '%s'", msg.Values[0]) if len(msg.Values) > 1 { command := msg.Values[0].String() + " " + msg.Values[1].String()