flush pins in the pin update command

fixes #5264

License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
This commit is contained in:
Steven Allen 2018-07-19 18:14:16 -07:00 committed by Jeromy
parent 82e006ead1
commit 5ca0302bbe

View File

@ -411,6 +411,12 @@ new pin and removing the old one.
return
}
err = n.Pinning.Flush()
if err != nil {
res.SetError(err, cmdkit.ErrNormal)
return
}
res.SetOutput(&PinOutput{Pins: []string{from.String(), to.String()}})
},
Marshalers: cmds.MarshalerMap{