fix logic for validating image tags

This commit is contained in:
Aiden McClelland
2022-03-03 14:23:46 -07:00
committed by Aiden McClelland
parent 47186f6cd0
commit 8a7181a21c

View File

@@ -68,7 +68,7 @@ impl ImageTag {
crate::ErrorKind::ValidateS9pk,
));
}
if id != &self.package_id {
if version != &self.version {
return Err(Error::new(
eyre!(
"Contains image with incorrect version: expected {} received {}",