Skip to content
Snippets Groups Projects
Commit 568fe49d authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(docker): info not warn for no labels

parent b1be2d85
Branches
No related tags found
No related merge requests found
......@@ -383,8 +383,11 @@ async function getLabels(registry, repository, tag) {
let labels = {};
// istanbul ignore if
if (!manifest.config) {
logger.warn({ manifest }, 'Docker manifest error: no config');
throw new Error('registry-failure');
logger.info(
{ dockerRepository: repository, tag, manifest },
'Docker manifest error: no config'
);
return {};
}
const configDigest = manifest.config.digest;
const headers = await getAuthHeaders(registry, repository);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment