mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +00:00
using string instead of byte
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
This commit is contained in:
parent
5e31799701
commit
bae72ee8d2
@ -487,7 +487,7 @@ func (util *RBDUtil) DetachDisk(plugin *rbdPlugin, deviceMountPath string, devic
|
|||||||
// rbd unmap
|
// rbd unmap
|
||||||
output, err := exec.Command(rbdCmd, "unmap", device).CombinedOutput()
|
output, err := exec.Command(rbdCmd, "unmap", device).CombinedOutput()
|
||||||
if err != nil {
|
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)
|
klog.V(3).Infof("rbd: successfully unmap device %s", device)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user