Merge pull request #408 from humblec/validate-paths

Add staging target path validation to nodeserver
This commit is contained in:
Humble Devassy Chirammal
2019-06-07 11:37:37 +05:30
committed by GitHub
2 changed files with 4 additions and 3 deletions

View File

@ -177,6 +177,10 @@ func validateNodePublishVolumeRequest(req *csi.NodePublishVolumeRequest) error {
return errors.New("target path missing in request")
}
if req.GetStagingTargetPath() == "" {
return errors.New("staging target path missing in request")
}
return nil
}