Report if an image already pulled (#52)

This commit is contained in:
Fedor Korotkov 2022-05-06 17:06:28 -04:00 committed by GitHub
parent f712ba8ce3
commit efc9c74b6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,8 @@ class VMStorageOCI {
if !exists(digestName) {
let vmDir = try create(digestName)
try await vmDir.pullFromRegistry(registry: registry, manifest: manifest)
} else {
defaultLogger.appendNewLine("\(digestName.reference) image is already cached! creating a symlink...")
}
// Create directory for reference if it's different