diff --git a/rust/agama-server/src/manager/web.rs b/rust/agama-server/src/manager/web.rs index d88867dbe..09fd6e1b9 100644 --- a/rust/agama-server/src/manager/web.rs +++ b/rust/agama-server/src/manager/web.rs @@ -39,7 +39,8 @@ use axum::{ }; use rand::distributions::{Alphanumeric, DistString}; use serde::Serialize; -use std::{pin::Pin, process::Command}; +use std::pin::Pin; +use tokio::process::Command; use tokio_stream::{Stream, StreamExt}; use tower_http::services::ServeFile; @@ -115,7 +116,7 @@ pub async fn manager_service(dbus: zbus::Connection) -> Result Result { Command::new("agama") .args(["logs", "store", "-d", path.as_str()]) .status() + .await .map_err(|e| ServiceError::CannotGenerateLogs(e.to_string()))?; let full_path = format!("{path}.tar.gz"); diff --git a/rust/package/agama.changes b/rust/package/agama.changes index 5e6e29a1b..a57c734fc 100644 --- a/rust/package/agama.changes +++ b/rust/package/agama.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 23 15:25:36 UTC 2024 - Imobach Gonzalez Sosa + +- Fix the action to download the logs (gh#agama-project/agama#1693). + ------------------------------------------------------------------- Tue Oct 22 09:46:41 UTC 2024 - Imobach Gonzalez Sosa diff --git a/web/package/agama-web-ui.changes b/web/package/agama-web-ui.changes index 6d54648b2..4bb4b0742 100644 --- a/web/package/agama-web-ui.changes +++ b/web/package/agama-web-ui.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Oct 23 15:26:29 UTC 2024 - Imobach Gonzalez Sosa + +- Adapt the URL to fetch the logs (gh#agama-project/agama#1693). + ------------------------------------------------------------------- Fri Oct 11 09:46:02 UTC 2024 - Imobach Gonzalez Sosa diff --git a/web/src/api/manager.ts b/web/src/api/manager.ts index 8b1be7499..b9e13f614 100644 --- a/web/src/api/manager.ts +++ b/web/src/api/manager.ts @@ -42,6 +42,6 @@ const finishInstallation = () => post("/api/manager/finish"); /** * Returns the binary content of the YaST logs file. */ -const fetchLogs = () => get("/api/manager/logs"); +const fetchLogs = () => get("/api/manager/logs.tar.gz"); export { startProbing, startInstallation, finishInstallation, fetchLogs };