Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
dbc24234
Commit
dbc24234
authored
Jan 23, 2017
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/core/dock.py
View file @
dbc24234
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment