mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-09-12 19:07:24 +00:00
Allow healthcheck override without test option (#847)
* Add healthcheck test_cli_compatible option * Update plugins/module_utils/util.py Co-authored-by: Felix Fontein <felix@fontein.de> * Update plugins/modules/docker_container.py Co-authored-by: Felix Fontein <felix@fontein.de> --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -746,7 +746,7 @@ def _preprocess_etc_hosts(module, client, api_version, value):
|
||||
def _preprocess_healthcheck(module, client, api_version, value):
|
||||
if value is None:
|
||||
return value
|
||||
if not value or not value.get('test'):
|
||||
if not value or not (value.get('test') or (value.get('test_cli_compatible') and value.get('test') is None)):
|
||||
value = {'test': ['NONE']}
|
||||
elif 'test' in value:
|
||||
value['test'] = normalize_healthcheck_test(value['test'])
|
||||
|
||||
Reference in New Issue
Block a user