From fc4629f6b839ed70c860d6957087ab0330376ba1 Mon Sep 17 00:00:00 2001 From: Rahul M Chheda Date: Fri, 6 Dec 2019 17:55:34 +0530 Subject: [PATCH] [Fix] localPV-provisioner : Added comment, when over-riding the path. Signed-off-by: Rahul M Chheda --- cmd/provisioner-localpv/app/provisioner_blockdevice.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/provisioner-localpv/app/provisioner_blockdevice.go b/cmd/provisioner-localpv/app/provisioner_blockdevice.go index cb563a1ee5..f7436ae39c 100644 --- a/cmd/provisioner-localpv/app/provisioner_blockdevice.go +++ b/cmd/provisioner-localpv/app/provisioner_blockdevice.go @@ -60,6 +60,8 @@ func (p *Provisioner) ProvisionBlockDevice(opts pvController.VolumeOptions, volu return nil, err } klog.Infof("Creating volume %v on %v at %v(%v)", name, nodeHostname, path, blkPath) + + // Over-ride the path, with the blockPath, when path is empty. if path == "" { path = blkPath klog.Infof("Using block device{%v} with fs{%v}", blkPath, fsType)