From 4592b795d98e7704de4b8f13e61d0c88a069fcd7 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 28 Apr 2015 08:33:26 -0700 Subject: [PATCH] Only split on the first colon. Fixes #1214 --- lib/ansible/modules/cloud/docker/docker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker.py b/lib/ansible/modules/cloud/docker/docker.py index 417b44c7de5..3f4ae2d5dc7 100644 --- a/lib/ansible/modules/cloud/docker/docker.py +++ b/lib/ansible/modules/cloud/docker/docker.py @@ -536,7 +536,7 @@ class DockerManager(object): self.lxc_conf = [] options = self.module.params.get('lxc_conf') for option in options: - parts = option.split(':') + parts = option.split(':', 1) self.lxc_conf.append({"Key": parts[0], "Value": parts[1]}) self.exposed_ports = None