From 8c79900bfae510367b0bb59dd9e0dfc8f4e3e436 Mon Sep 17 00:00:00 2001 From: Kevin Pavon <7450065+KaraokeKev@users.noreply.github.com> Date: Tue, 21 Feb 2023 18:01:35 -0500 Subject: [PATCH] process_list set value to lower allowing case insensitivity Signed-off-by: Kevin Pavon <7450065+KaraokeKev@users.noreply.github.com> --- awx_collection/plugins/lookup/schedule_rruleset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx_collection/plugins/lookup/schedule_rruleset.py b/awx_collection/plugins/lookup/schedule_rruleset.py index fb8dfe7549f4..33bf56e5bbeb 100644 --- a/awx_collection/plugins/lookup/schedule_rruleset.py +++ b/awx_collection/plugins/lookup/schedule_rruleset.py @@ -213,7 +213,7 @@ def process_list(self, field_name, rule, valid_list, rule_number): if isinstance(rule[field_name], str): rule[field_name] = rule[field_name].split(',') for value in rule[field_name]: - value = value.strip() + value = value.strip().lower() if value not in valid_list: raise AnsibleError('In rule {0} {1} must only contain values in {2}'.format(rule_number, field_name, ', '.join(valid_list.keys()))) return_values.append(valid_list[value])