rebuild docker containers if there are less ports exposed

(cherry picked from commit cb3026f769)
This commit is contained in:
bengerman 2017-05-23 15:00:49 -07:00 committed by James Cammarata
parent e42b4a266b
commit bf94109ade

View file

@ -1287,7 +1287,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), dict) and isinstance(value, dict):
# compare two dicts
self.log("comparing two dicts: %s" % key)