flush pins in the pin update command
fixes #5264 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Jul 19, 2018 at 18:14 UTC
5ca0302bbe5525029d63590b4e89d531655fbbbe
1 file changed
+6
core/commands/pin.go
+6
@@ -411,6 +411,12 @@ new pin and removing the old one.
411
return
412
}
413
414
+ err = n.Pinning.Flush()
415
+ if err != nil {
416
+ res.SetError(err, cmdkit.ErrNormal)
417
+ return
418
+ }
419
+
420
res.SetOutput(&PinOutput{Pins: []string{from.String(), to.String()}})
421
},
422
Marshalers: cmds.MarshalerMap{