From cb3026f76949a0f03f133c56a772d1dc7a897837 Mon Sep 17 00:00:00 2001 From: bengerman Date: Tue, 23 May 2017 15:00:49 -0700 Subject: [PATCH] rebuild docker containers if there are less ports exposed --- lib/ansible/modules/cloud/docker/docker_container.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/docker/docker_container.py b/lib/ansible/modules/cloud/docker/docker_container.py index 30808a1bbe5..51e9d8c04af 100644 --- a/lib/ansible/modules/cloud/docker/docker_container.py +++ b/lib/ansible/modules/cloud/docker/docker_container.py @@ -1311,7 +1311,7 @@ class Container(DockerBaseClass): self.log("comparing lists: %s" % key) set_a = set(getattr(self.parameters, key)) set_b = set(value) - match = (set_a <= set_b) + match = (set_a == set_b) elif isinstance(getattr(self.parameters, key), list) and not len(getattr(self.parameters, key)) \ and value is None: # an empty list and None are ==