Skip to content

Commit 23eb599

Browse files
fix: image selection logic
1 parent 6b5e2f3 commit 23eb599

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Sources/Services/ContainerAPIService/Client/Utility.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ public struct Utility {
129129
.setItemsName("blobs"),
130130
])
131131
let fetchInitTask = await taskManager.startTask()
132+
let initImageRef = management.initImage ?? ClientImage.initImageRef
132133
let initImage = try await ClientImage.fetch(
133-
reference: ClientImage.initImageRef, platform: .current, scheme: scheme,
134+
reference: initImageRef, platform: .current, scheme: scheme,
134135
progressUpdate: ProgressTaskCoordinator.handler(for: fetchInitTask, from: progressUpdate),
135136
maxConcurrentDownloads: imageFetch.maxConcurrentDownloads)
136137

0 commit comments

Comments
 (0)