aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-11-08 15:38:53 +0100
committerAlex Auvolat <alex@adnab.me>2022-11-08 15:38:53 +0100
commit217abdca18ff15190c0407b2b8b1ea204edcfb99 (patch)
tree8967f7507c7ef1bd32b2c6a4c2a910233b053475
parentfc2729cd810b94c47d89e9039ea65726c9a85988 (diff)
downloadgarage-217abdca18ff15190c0407b2b8b1ea204edcfb99.tar.gz
garage-217abdca18ff15190c0407b2b8b1ea204edcfb99.zip
Fix HTTP return code
-rw-r--r--src/api/admin/cluster.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/admin/cluster.rs b/src/api/admin/cluster.rs
index 7b91f709..4386c0cc 100644
--- a/src/api/admin/cluster.rs
+++ b/src/api/admin/cluster.rs
@@ -167,7 +167,7 @@ pub async fn handle_apply_cluster_layout(
garage.system.update_cluster_layout(&layout).await?;
Ok(Response::builder()
- .status(StatusCode::NO_CONTENT)
+ .status(StatusCode::OK)
.header(http::header::CONTENT_TYPE, "text/plain")
.body(Body::from(msg.join("\n")))?)
}