Skip to content

Commit

Permalink
PWX-38585: Adds additional labels to clone requests
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Krpan <[email protected]>
  • Loading branch information
Pure-AdamuKaapan committed Sep 9, 2024
1 parent 2d20853 commit 78a5325
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 78a5325

Please sign in to comment.