mirror of
https://github.com/docker/compose.git
synced 2025-07-24 06:04:57 +02:00
Skip event objects that don't contain a status field
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
11d8093fc8
commit
2a08d4731e
@ -342,7 +342,10 @@ class Project(object):
|
|||||||
filters={'label': self.labels()},
|
filters={'label': self.labels()},
|
||||||
decode=True
|
decode=True
|
||||||
):
|
):
|
||||||
if event['status'] in IMAGE_EVENTS:
|
# The first part of this condition is a guard against some events
|
||||||
|
# broadcasted by swarm that don't have a status field.
|
||||||
|
# See https://github.com/docker/compose/issues/3316
|
||||||
|
if 'status' not in event or event['status'] in IMAGE_EVENTS:
|
||||||
# We don't receive any image events because labels aren't applied
|
# We don't receive any image events because labels aren't applied
|
||||||
# to images
|
# to images
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user