Merge pull request #43933 from gtmanfred/2017.7

if expect_minions is passed use that instead
This commit is contained in:
Nicole Thomas 2017-10-18 12:43:38 -04:00 committed by GitHub
commit 0b47eb7242

View file

@ -1582,7 +1582,10 @@ class LocalClient(object):
timeout=timeout,
tgt=tgt,
tgt_type=tgt_type,
expect_minions=(verbose or show_timeout),
# (gtmanfred) expect_minions is popped here incase it is passed from a client
# call. If this is not popped, then it would be passed twice to
# get_iter_returns.
expect_minions=(kwargs.pop('expect_minions', False) or verbose or show_timeout),
**kwargs
):
log.debug('return event: %s', ret)