mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #86569 from zouyee/btos
using string instead of byte
This commit is contained in:
commit
15aa065e86
@ -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