From 78a53252cb75b817b4300916f9221e1ea19222b1 Mon Sep 17 00:00:00 2001 From: Adam Krpan Date: Mon, 9 Sep 2024 23:07:57 +0000 Subject: [PATCH] PWX-38585: Adds additional labels to clone requests Signed-off-by: Adam Krpan --- api/server/volume.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server/volume.go b/api/server/volume.go index 69af5b877..44b26b561 100644 --- a/api/server/volume.go +++ b/api/server/volume.go @@ -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(),