Merge "Fix the logic to set container state to Error"

This commit is contained in:
Jenkins 2017-04-14 10:06:18 +00:00 committed by Gerrit Code Review
commit a60bbf13c5

View File

@ -165,7 +165,7 @@ class DockerDriver(driver.ContainerDriver):
status = response.get('State')
if status:
status_detail = ''
if status.get('Error') is True:
if status.get('Error'):
container.status = consts.ERROR
status_detail = self.format_status_detail(
status.get('FinishedAt'))