diff --git a/cloud/docker b/cloud/docker index f9aabf21a93..590e86dd061 100644 --- a/cloud/docker +++ b/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'))