diff --git a/dispatch.go b/dispatch.go index 44d3f84..cf1dc72 100644 --- a/dispatch.go +++ b/dispatch.go @@ -7,11 +7,11 @@ import ( ) func (i *Instance) Dispatch(cmd string) (io.ReadCloser, error) { - return readSocketRaw(i.SocketPath(), strings.NewReader(cmd)) + return readSocketRaw(i.SocketPath(), strings.NewReader(fmt.Sprintf("dispatch %s", cmd))) } func (i *Instance) DispatchExpectOK(cmd string) error { - str, err := readSocketString(i.SocketPath(), strings.NewReader(cmd)) + str, err := readSocketString(i.SocketPath(), strings.NewReader(fmt.Sprintf("dispatch %s", cmd))) if err != nil { return err }