mirror of
https://github.com/sergi0g/cup.git
synced 2025-11-16 17:13:46 -05:00
Show unknown when image tag does not exist
This commit is contained in:
@@ -103,7 +103,6 @@ impl Image {
|
||||
}
|
||||
}
|
||||
|
||||
/// Compares remote digest of the image with its local digests to determine if it has an update or not
|
||||
pub fn has_update(&self) -> Status {
|
||||
if self.error.is_some() {
|
||||
Status::Unknown(self.error.clone().unwrap())
|
||||
@@ -190,7 +189,7 @@ impl Image {
|
||||
},
|
||||
time: self.time_ms,
|
||||
server: None,
|
||||
status: Status::Unknown(String::new()),
|
||||
status: has_update,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user