Skip to content

Commit

Permalink
[Fix] localPV-provisioner : Added comment, when over-riding the path.
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul M Chheda <[email protected]>
  • Loading branch information
Rahul M Chheda committed Dec 6, 2019
1 parent a7f0597 commit fc4629f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/provisioner-localpv/app/provisioner_blockdevice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fc4629f

Please sign in to comment.