diff --git a/library/cloud/docker b/library/cloud/docker index f9aabf21a9..590e86dd06 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'))