Skip to content

Commit

Permalink
Merge pull request #49037 from mtlaird/fix-loop-bug
Browse files Browse the repository at this point in the history
Fix case where args or kwargs are not specified in loop state
  • Loading branch information
Nicole Thomas authored Aug 13, 2018
2 parents 46bc216 + d8baac3 commit 00763f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions salt/states/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ def until(name,
ret['comment'] = 'The execution module {0} will be run'.format(name)
ret['result'] = None
return ret
if not m_args:
m_args = []
if not m_kwargs:
m_kwargs = {}

def timed_out():
if time.time() >= timeout:
Expand Down

0 comments on commit 00763f1

Please sign in to comment.