diff --git a/internal/rbd/rbd_util.go b/internal/rbd/rbd_util.go index 15c66248a..d911574cc 100644 --- a/internal/rbd/rbd_util.go +++ b/internal/rbd/rbd_util.go @@ -488,7 +488,7 @@ func (rv *rbdVolume) flattenRbdImage(ctx context.Context, cr *util.Credentials, } if forceFlatten || (depth >= hardlimit) || (depth >= softlimit) { - args := []string{"flatten", rv.Pool + "/" + rv.RbdImageName, "--id", cr.ID, "--keyfile=" + cr.KeyFile, "-m", rv.Monitors} + args := []string{"flatten", rv.String(), "--id", cr.ID, "--keyfile=" + cr.KeyFile, "-m", rv.Monitors} supported, err := addRbdManagerTask(ctx, rv, args) if supported { if err != nil {