Commit dbc24234 authored by Philip ABBET's avatar Philip ABBET
Browse files

Only attempt to use docker images with 'beat' in their name

parent a9412a0a
Pipeline #6720 passed with stage
in 4 minutes and 46 seconds
......@@ -143,8 +143,12 @@ class Host(object):
retval = {}
for image in self.client.images():
# call the "describe" application on each existing image
# call the "describe" application on each existing image with "beat" in
# its name
tag = image['RepoTags'][0] if image['RepoTags'] else None
if (tag is None) or (tag.find('beat') == -1):
id = image['Id'].split(':')[1][:12]
logger.debug("Checking image `%s' (%s)...", tag, id)
description = _describe(tag or id)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment