mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-09-14 03:40:33 +00:00
(cherry picked from commit 9cc70f5202)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
@@ -288,7 +288,7 @@ class DifferenceTracker(object):
|
||||
def sanitize_labels(labels, labels_field, client=None, module=None):
|
||||
def fail(msg):
|
||||
if client is not None:
|
||||
client.module.fail(msg)
|
||||
client.fail(msg)
|
||||
if module is not None:
|
||||
module.fail_json(msg=msg)
|
||||
raise ValueError(msg)
|
||||
|
||||
Reference in New Issue
Block a user