mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-09 17:59:09 -07: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:
parent
1abc73da68
commit
c1b3d6a51f
3 changed files with 37 additions and 17 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue