From dbc24234c3e9be4bbb45bd88a73630880c3b5ed5 Mon Sep 17 00:00:00 2001 From: Philip Abbet <philip.abbet@idiap.ch> Date: Mon, 23 Jan 2017 14:53:28 +0100 Subject: [PATCH] Only attempt to use docker images with 'beat' in their name --- beat/core/dock.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/beat/core/dock.py b/beat/core/dock.py index c5151887..37ecfd76 100755 --- a/beat/core/dock.py +++ b/beat/core/dock.py @@ -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): + continue + id = image['Id'].split(':')[1][:12] logger.debug("Checking image `%s' (%s)...", tag, id) description = _describe(tag or id) -- GitLab