mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-22 18:31:25 -07:00
Backport of https://github.com/ansible-collections/community.docker/pull/88 to stable-1. (#1982)
This commit is contained in:
parent
1e1a843ff3
commit
a22113c3c2
3 changed files with 28 additions and 4 deletions
|
@ -2293,6 +2293,12 @@ class Container(DockerBaseClass):
|
|||
match = self._compare(getattr(self.parameters, key), value, compare)
|
||||
|
||||
if not match:
|
||||
if key == 'expected_healthcheck' and config_mapping['disable_healthcheck'] and self.parameters.disable_healthcheck:
|
||||
# If the healthcheck is disabled (both in parameters and for the current container), and the user
|
||||
# requested strict comparison for healthcheck, the comparison will fail. That's why we ignore the
|
||||
# expected_healthcheck comparison in this case.
|
||||
continue
|
||||
|
||||
# no match. record the differences
|
||||
p = getattr(self.parameters, key)
|
||||
c = value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue