From e6843dce26fb18e5b8e877cbe3a4253095980687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Mon, 28 Oct 2024 09:26:07 +0000 Subject: [PATCH 1/2] fix(rust): use POST to apply the network configuration --- rust/agama-lib/src/network/client.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/agama-lib/src/network/client.rs b/rust/agama-lib/src/network/client.rs index 44dcbfee98..b48c79f6fd 100644 --- a/rust/agama-lib/src/network/client.rs +++ b/rust/agama-lib/src/network/client.rs @@ -84,7 +84,7 @@ impl NetworkClient { // trying to be tricky here. If something breaks then we need a put method on // BaseHTTPClient which doesn't require a serialiable object for the body self.client - .put_void(&format!("/network/system/apply").as_str(), &()) + .post_void(&format!("/network/system/apply").as_str(), &()) .await?; Ok(()) From bf081553606016d7a5b6af0550ab0733836c3bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Imobach=20Gonz=C3=A1lez=20Sosa?= Date: Mon, 28 Oct 2024 09:26:26 +0000 Subject: [PATCH 2/2] docs(rust): update changes file --- rust/package/agama.changes | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rust/package/agama.changes b/rust/package/agama.changes index a57c734fcb..cff140ecc7 100644 --- a/rust/package/agama.changes +++ b/rust/package/agama.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Oct 28 09:24:48 UTC 2024 - Imobach Gonzalez Sosa + +- Use the correct method to apply the network configuration from + the CLI (gh#agama-project/agama#1701). + ------------------------------------------------------------------- Wed Oct 23 15:25:36 UTC 2024 - Imobach Gonzalez Sosa