mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -03:30
Follow suggestion from comment, split if NOT list
This commit is contained in:
parent
811ecb8673
commit
3051384f95
@ -210,6 +210,7 @@ class LookupModule(LookupBase):
|
||||
|
||||
def process_list(self, field_name, rule, valid_list, rule_number):
|
||||
return_values = []
|
||||
# If its not a list, we need to split it into a list
|
||||
if not isinstance(rule[field_name], list):
|
||||
rule[field_name] = rule[field_name].split(',')
|
||||
for value in rule[field_name]:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user