Skip to content

Commit

Permalink
Merge pull request #92027 from juliantaylor/fix-rbd-expand
Browse files Browse the repository at this point in the history
fix expanding rbd volumes without ceph.conf
  • Loading branch information
k8s-ci-robot authored Sep 17, 2020
2 parents 9707537 + da01c8d commit 550b83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/volume/rbd/rbd_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ func (util *rbdUtil) rbdInfo(b *rbdMounter) (int, error) {
//
klog.V(4).Infof("rbd: info %s using mon %s, pool %s id %s key %s", b.Image, mon, b.Pool, id, secret)
output, err = b.exec.Command("rbd",
"info", b.Image, "--pool", b.Pool, "-m", mon, "--id", id, "--key="+secret, "-k=/dev/null", "--format=json").CombinedOutput()
"info", b.Image, "--pool", b.Pool, "-m", mon, "--id", id, "--key="+secret, "-k=/dev/null", "--format=json").Output()

if err, ok := err.(*exec.Error); ok {
if err.Err == exec.ErrNotFound {
Expand Down

0 comments on commit 550b83b

Please sign in to comment.