Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
bb55b46c34 |
@@ -66,7 +66,7 @@ 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) => {
|
||||||
println!("Warning: No WatcherAgent container found");
|
println!("Warning: No WatcherAgent container found");
|
||||||
"unknown".to_string()
|
"unknown".to_string()
|
||||||
|
Reference in New Issue
Block a user