Skip to content

Commit

Permalink
process_list set value to lower allowing case insensitivity
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Pavon <[email protected]>
  • Loading branch information
KaraokeKev committed Feb 21, 2023
1 parent 8e52dc2 commit 038bb73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion awx_collection/plugins/lookup/schedule_rruleset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 038bb73

Please sign in to comment.