Fix an error when docker hub failed to anwser

Fix #843
This commit is contained in:
Julien Duponchelle 2016-12-20 09:15:28 +01:00
parent 2011aca43a
commit 52adf45740
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -268,6 +268,8 @@ class DockerVM(BaseNode):
log.info("Image %s is missing pulling it from docker hub", self._image)
yield from self.pull_image(self._image)
image_infos = yield from self._get_image_information()
if image_infos is None:
raise DockerError("Can't get image informations, please try again.")
params = {
"Hostname": self._name,