Update control plane API path for getting compute spec. (#5357)

We changed the path in the control plane. The old path is still accepted
for compatibility with existing computes, but we'd like to phase it out.
This commit is contained in:
Heikki Linnakangas
2023-11-06 09:26:09 +02:00
committed by GitHub
parent 09b5954526
commit b85fc39bdb
2 changed files with 2 additions and 2 deletions

View File

@@ -68,7 +68,7 @@ pub fn get_spec_from_control_plane(
base_uri: &str,
compute_id: &str,
) -> Result<Option<ComputeSpec>> {
let cp_uri = format!("{base_uri}/management/api/v2/computes/{compute_id}/spec");
let cp_uri = format!("{base_uri}/compute/api/v2/computes/{compute_id}/spec");
let jwt: String = match std::env::var("NEON_CONTROL_PLANE_TOKEN") {
Ok(v) => v,
Err(_) => "".to_string(),