Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lxd/storage_volumes: Fix calls to QueryParam #12462

Merged
merged 1 commit into from
Oct 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lxd/storage_volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ func storagePoolVolumesTypePost(d *Daemon, r *http.Request) response.Response {
return response.Conflict(fmt.Errorf("Volume by that name already exists"))
}

target := queryParam(r, "target")
target := request.QueryParam(r, "target")

// Check if we need to switch to migration
clustered, err := lxdCluster.Enabled(s.DB.Node)
Expand Down Expand Up @@ -1152,7 +1152,7 @@ func storagePoolVolumePost(d *Daemon, r *http.Request) response.Response {

r.Body = shared.BytesReadCloser{Buf: &buf}

target := queryParam(r, "target")
target := request.QueryParam(r, "target")

// Check if clustered.
clustered, err := lxdCluster.Enabled(s.DB.Node)
Expand Down
Loading