3 Commits

Author SHA1 Message Date
bb55b46c34 fixed image version detectionr
All checks were successful
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 4s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m4s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 2m49s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 3m35s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Build and Push Docker Image (push) Successful in 2m8s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 1s
Rust Cross-Platform Build / Create Tag (push) Successful in 5s
2025-10-04 20:38:20 +02:00
76d54cb433 fixed image detection in client container
All checks were successful
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 4s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m8s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 3m0s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 3m43s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Build and Push Docker Image (push) Successful in 2m8s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 1s
Rust Cross-Platform Build / Create Tag (push) Successful in 5s
2025-10-04 20:25:35 +02:00
4dc8c56a5c moved eprintln to println 2025-10-04 17:11:40 +02:00

View File

@@ -55,7 +55,7 @@ impl DockerManager {
Ok(containers Ok(containers
.into_iter() .into_iter()
.find(|c| c.image == client_image) .find(|c| c.image.contains(client_image))
.map(|container| DockerContainerDto { .map(|container| DockerContainerDto {
id: container.id, id: container.id,
image: container.image, image: container.image,
@@ -66,13 +66,13 @@ impl DockerManager {
/// Gets the current client version (image name) if running in Docker /// Gets the current client version (image name) if running in Docker
pub async fn get_client_version(&self) -> String { pub async fn get_client_version(&self) -> String {
match self.get_client_container().await { match self.get_client_container().await {
Ok(Some(container)) => container.image, Ok(Some(container)) => container.image.split(':').next().unwrap_or("unknown").to_string(),
Ok(None) => { Ok(None) => {
eprintln!("Warning: No WatcherAgent container found"); println!("Warning: No WatcherAgent container found");
"unknown".to_string() "unknown".to_string()
} }
Err(e) => { Err(e) => {
eprintln!("Warning: Could not get current image version: {}", e); println!("Warning: Could not get current image version: {}", e);
"unknown".to_string() "unknown".to_string()
} }
} }