Skip to content

Commit

Permalink
Report if an image already pulled (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
fkorotkov authored May 6, 2022
1 parent f712ba8 commit efc9c74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/tart/VMStorageOCI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit efc9c74

Please sign in to comment.