Skip to content

Commit

Permalink
Merge pull request #197 from dkeven/fixexpansionrequired
Browse files Browse the repository at this point in the history
Fix the wrong check of whether node expansion is required
  • Loading branch information
stoneshi-yunify authored Nov 10, 2021
2 parents bdeb967 + 62dac06 commit d1de9e3
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 d1de9e3

Please sign in to comment.