Skip to content

Commit

Permalink
Fix the wrong check of whether node expansion is required
Browse files Browse the repository at this point in the history
Signed-off-by: dkeven <[email protected]>
  • Loading branch information
dkeven committed Nov 10, 2021
1 parent 6f07d18 commit 62dac06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/disk/rpcserver/controllerserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ func (cs *ControllerServer) ControllerExpandVolume(ctx context.Context, req *csi
}

// If volume is in block mode, it doesn't need NodeExpandVolume operation
nodeExpansionRequired := req.GetVolumeCapability().GetBlock() != nil
nodeExpansionRequired := req.GetVolumeCapability().GetBlock() == nil

// For idempotent
volSizeBytes := common.GibToByte(*volInfo.Size)
Expand Down

0 comments on commit 62dac06

Please sign in to comment.