1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

rebuild docker containers if there are less ports exposed

This commit is contained in:
bengerman 2017-05-23 15:00:49 -07:00 committed by Toshio Kuratomi
parent a5c70dc672
commit cb3026f769

View file

@ -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 ==