From bae72ee8d2e605149a736987071c63d3e0ee99c9 Mon Sep 17 00:00:00 2001 From: zouyee Date: Tue, 24 Dec 2019 09:23:02 +0800 Subject: [PATCH] using string instead of byte Signed-off-by: Zou Nengren --- pkg/volume/rbd/rbd_util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/volume/rbd/rbd_util.go b/pkg/volume/rbd/rbd_util.go index 85044e85fde..93b7ff219f0 100644 --- a/pkg/volume/rbd/rbd_util.go +++ b/pkg/volume/rbd/rbd_util.go @@ -487,7 +487,7 @@ func (util *RBDUtil) DetachDisk(plugin *rbdPlugin, deviceMountPath string, devic // rbd unmap output, err := exec.Command(rbdCmd, "unmap", device).CombinedOutput() if err != nil { - return rbdErrors(err, fmt.Errorf("rbd: failed to unmap device %s, error %v, rbd output: %v", device, err, output)) + return rbdErrors(err, fmt.Errorf("rbd: failed to unmap device %s, error %v, rbd output: %s", device, err, string(output))) } klog.V(3).Infof("rbd: successfully unmap device %s", device)