Migrate wwclient to use runtime/ route

Use the new runtime/ route path instead of provision/ with a stage
query parameter, in preparation for removing the legacy provision/
endpoint.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
This commit is contained in:
Jonathon Anderson
2026-03-09 21:41:02 -06:00
committed by Christian Goll
parent 0133a3eb46
commit dbd54abe46

View File

@@ -316,12 +316,11 @@ func updateSystem(target string, ipaddr string, port int, wwid string, tag strin
values := &url.Values{}
values.Set("assetkey", tag)
values.Set("uuid", localUUID.String())
values.Set("stage", "runtime")
values.Set("compress", "gz")
getURL := &url.URL{
Scheme: scheme,
Host: fmt.Sprintf("%s:%d", ipaddr, port),
Path: fmt.Sprintf("provision/%s", wwid),
Path: fmt.Sprintf("runtime/%s", wwid),
RawQuery: values.Encode(),
}
wwlog.Debug("making request: %s", getURL)