Fix label sanitization error handling. (#1029) (#1030)

(cherry picked from commit 9cc70f5202)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2025-01-22 22:07:16 +01:00
committed by GitHub
parent 24306c0825
commit fe81035065
3 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -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)