Skip to content

Commit

Permalink
rename to nodeID
Browse files Browse the repository at this point in the history
Signed-off-by: prateekpandey14 <[email protected]>
  • Loading branch information
prateekpandey14 committed Feb 4, 2020
1 parent 5cd15c4 commit dfa29ff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/service/v1alpha1/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ func (cs *controller) CreateVolume(
req *csi.CreateVolumeRequest,
) (*csi.CreateVolumeResponse, error) {
var (
err error
nodeTopology string
snapshotID string
err error
nodeID string
snapshotID string
)
logrus.Infof("received request to create volume {%s}", req.GetName())

Expand All @@ -101,7 +101,7 @@ func (cs *controller) CreateVolume(
"openebs.io/cas-type": req.GetParameters()["cas-type"],
}

nodeTopology = getAccessibilityRequirements(req.GetAccessibilityRequirements())
nodeID = getAccessibilityRequirements(req.GetAccessibilityRequirements())

contentSource := req.GetVolumeContentSource()
if contentSource != nil && contentSource.GetSnapshot() != nil {
Expand All @@ -124,7 +124,7 @@ func (cs *controller) CreateVolume(

err = utils.ProvisionVolume(size, volName, rCount,
cspcName, snapshotID,
nodeTopology, policyName)
nodeID, policyName)
if err != nil {
return nil, status.Error(codes.Internal, err.Error())
}
Expand Down

0 comments on commit dfa29ff

Please sign in to comment.