Skip to content

Commit

Permalink
Address code review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Simão Reis <[email protected]>
  • Loading branch information
Simão Reis committed Jan 24, 2019
1 parent c1f6c04 commit 7e5a998
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/driver/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ func (d *Driver) NodeUnstageVolume(ctx context.Context, req *csi.NodeUnstageVolu
return &csi.NodeUnstageVolumeResponse{}, nil
}

if len(refs) > 1 {
klog.Warningf("NodeUnstageVolume: found multiple references to target path %s: [%v]", target, refs)
}

klog.V(5).Infof("NodeUnstageVolume: unmounting %s", target)
err = d.mounter.Interface.Unmount(target)
if err != nil {
Expand Down

0 comments on commit 7e5a998

Please sign in to comment.