From e83f14200cb8522740ef35a6264d2858ab58c1c3 Mon Sep 17 00:00:00 2001 From: Konstantin Shabanov Date: Wed, 14 May 2014 18:11:43 +0400 Subject: [PATCH] Fix env splitting in docker module ENV variable value could contain '=' (for example mysql://host/db?pool=10) --- library/cloud/docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/cloud/docker b/library/cloud/docker index 188f14ab04d..84ac1adce2f 100644 --- a/library/cloud/docker +++ b/library/cloud/docker @@ -384,7 +384,7 @@ class DockerManager: self.env = None if self.module.params.get('env'): - self.env = dict(map(lambda x: x.split("="), self.module.params.get('env'))) + self.env = dict(map(lambda x: x.split("=", 1), self.module.params.get('env'))) # connect to docker server docker_url = urlparse(module.params.get('docker_url'))