fix: use PodmanClient::new() in factory reset handler
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c545b79b65
commit
7b9fa08493
@ -614,11 +614,10 @@ impl RpcHandler {
|
|||||||
let data_dir = &self.config.data_dir;
|
let data_dir = &self.config.data_dir;
|
||||||
|
|
||||||
// Stop all running containers
|
// Stop all running containers
|
||||||
if let Ok(client) = archipelago_container::PodmanClient::detect().await {
|
let client = archipelago_container::PodmanClient::new("archipelago".to_string());
|
||||||
if let Ok(containers) = client.list_containers().await {
|
if let Ok(containers) = client.list_containers().await {
|
||||||
for c in &containers {
|
for c in &containers {
|
||||||
let _ = client.stop_container(&c.names).await;
|
let _ = client.stop_container(&c.names).await;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user