Fix compose_version error. Check has compose before checking version.
This commit is contained in:
parent
1e9590ab65
commit
3d5f84c528
1 changed files with 3 additions and 3 deletions
|
@ -484,14 +484,14 @@ class ContainerManager(DockerBaseClass):
|
||||||
if self.files:
|
if self.files:
|
||||||
self.options[u'--file'] = self.files
|
self.options[u'--file'] = self.files
|
||||||
|
|
||||||
|
if not HAS_COMPOSE:
|
||||||
|
self.client.fail("Unable to load docker-compose. Try `pip install docker-compose`. Error: %s" % HAS_COMPOSE_EXC)
|
||||||
|
|
||||||
if LooseVersion(compose_version) < LooseVersion(MINIMUM_COMPOSE_VERSION):
|
if LooseVersion(compose_version) < LooseVersion(MINIMUM_COMPOSE_VERSION):
|
||||||
self.client.fail("Found docker-compose version %s. Minimum required version is %s. "
|
self.client.fail("Found docker-compose version %s. Minimum required version is %s. "
|
||||||
"Upgrade docker-compose to a min version of %s." %
|
"Upgrade docker-compose to a min version of %s." %
|
||||||
(compose_version, MINIMUM_COMPOSE_VERSION, MINIMUM_COMPOSE_VERSION))
|
(compose_version, MINIMUM_COMPOSE_VERSION, MINIMUM_COMPOSE_VERSION))
|
||||||
|
|
||||||
if not HAS_COMPOSE:
|
|
||||||
self.client.fail("Unable to load docker-compose. Try `pip install docker-compose`. Error: %s" % HAS_COMPOSE_EXC)
|
|
||||||
|
|
||||||
self.log("options: ")
|
self.log("options: ")
|
||||||
self.log(self.options, pretty_print=True)
|
self.log(self.options, pretty_print=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue