mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix 'sequence' lookup shortcut syntax and documentation (#22989)
* fix 'sequence' lookup shortcut syntax and documentation * Update playbooks_loops.rst Minor edits for grammar and clarity. * Update playbooks_loops.rst Another tweak for clarity.
This commit is contained in:
committed by
Brian Coca
parent
1abc73da68
commit
c1b3d6a51f
@@ -142,6 +142,8 @@ class LookupModule(LookupBase):
|
||||
if format is not None:
|
||||
self.format = format
|
||||
|
||||
return True
|
||||
|
||||
def sanity_check(self):
|
||||
if self.count is None and self.end is None:
|
||||
raise AnsibleError( "must specify count or end in with_sequence")
|
||||
|
||||
Reference in New Issue
Block a user