Skip to content

Commit

Permalink
Merge pull request libopenstorage#2481 from libopenstorage/PWX-38585-…
Browse files Browse the repository at this point in the history
…master

PWX-38585: Adds additional labels to clone requests
  • Loading branch information
CharudathGopal authored Sep 12, 2024
2 parents 2d20853 + 78a5325 commit 464a4a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/server/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ func (vd *volAPI) snap(w http.ResponseWriter, r *http.Request) {
snapRes.VolumeCreateResponse.Id = res.GetSnapshotId()
}
} else {
res, err := volumes.Clone(ctx, &api.SdkVolumeCloneRequest{ParentId: snapReq.Id, Name: snapReq.Locator.Name})
res, err := volumes.Clone(ctx, &api.SdkVolumeCloneRequest{ParentId: snapReq.Id, Name: snapReq.Locator.Name, AdditionalLabels: snapReq.Locator.VolumeLabels})
if err != nil {
snapRes.VolumeCreateResponse.VolumeResponse = &api.VolumeResponse{
Error: err.Error(),
Expand Down

0 comments on commit 464a4a2

Please sign in to comment.