Skip to content

Commit

Permalink
fix(docker): reorder manifest check
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Jul 18, 2019
1 parent a7e24d5 commit 5695026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datasource/docker/index.js
Expand Up @@ -381,12 +381,12 @@ async function getLabels(registry, repository, tag) {
}
const manifest = JSON.parse(manifestResponse.body);
let labels = {};
const configDigest = manifest.config.digest;
// istanbul ignore if
if (!manifest.config) {
logger.warn({ manifest }, 'Docker manifest error: no config');
throw new Error('registry-failure');
}
const configDigest = manifest.config.digest;
const headers = await getAuthHeaders(registry, repository);
if (!headers) {
logger.info('No docker auth found - returning');
Expand Down

0 comments on commit 5695026

Please sign in to comment.