mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix 'sequence' plugin error.
If 'terms' is a string, replace it with a single item list.
This commit is contained in:
parent
40b78f96de
commit
88eb5516eb
1 changed files with 4 additions and 1 deletions
|
@ -175,6 +175,9 @@ class LookupModule(object):
|
|||
|
||||
terms = utils.listify_lookup_plugin_terms(terms, self.basedir, inject)
|
||||
|
||||
if isinstance(terms, basestring):
|
||||
terms = [ terms ]
|
||||
|
||||
for term in terms:
|
||||
try:
|
||||
self.reset() # clear out things for this iteration
|
||||
|
|
Loading…
Add table
Reference in a new issue