Skip to content
Snippets Groups Projects
Commit 1c263519 authored by Steven Dake's avatar Steven Dake
Browse files

Upgrade fails from 2.0.0->2.0.1

The new image doesn't have an existing old image, so it
ends up not existing.  In this condition, we know that
we are dealing with a version change upgrade.

TrivialFix

Change-Id: Ic2f83c2bb6c34731b60b3430ba66a6324439f0a9
parent b0b891ed
No related branches found
No related tags found
No related merge requests found
...@@ -274,6 +274,8 @@ class DockerWorker(object): ...@@ -274,6 +274,8 @@ class DockerWorker(object):
return True return True
new_image = self.check_image() new_image = self.check_image()
current_image = container_info['Image'] current_image = container_info['Image']
if not new_image:
return True
if new_image['Id'] != current_image: if new_image['Id'] != current_image:
return True return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment