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:
Konstantin Suvorov 2017-03-30 02:11:19 +03:00 committed by Brian Coca
parent 1abc73da68
commit c1b3d6a51f
3 changed files with 37 additions and 17 deletions

View file

@ -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")