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
d1e14c4269
commit
4afb69f982
@ -614,11 +614,10 @@ impl RpcHandler {
|
||||
let data_dir = &self.config.data_dir;
|
||||
|
||||
// Stop all running containers
|
||||
if let Ok(client) = archipelago_container::PodmanClient::detect().await {
|
||||
if let Ok(containers) = client.list_containers().await {
|
||||
for c in &containers {
|
||||
let _ = client.stop_container(&c.names).await;
|
||||
}
|
||||
let client = archipelago_container::PodmanClient::new("archipelago".to_string());
|
||||
if let Ok(containers) = client.list_containers().await {
|
||||
for c in &containers {
|
||||
let _ = client.stop_container(&c.names).await;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user