if expect_minions is passed use that instead

In the salt/states/saltmod.py, we set expect minions sometimes and pass that
through.  In this instance, we should use the expect_minions that is passed so
that it does not get passed along twice.
This commit is contained in:
Daniel Wallace 2017-10-05 10:08:20 -06:00
parent 6252f82f58
commit b615ce1762
No known key found for this signature in database
GPG key ID: 5FA5E5544F010D48

View file

@ -1582,7 +1582,7 @@ class LocalClient(object):
timeout=timeout,
tgt=tgt,
tgt_type=tgt_type,
expect_minions=(verbose or show_timeout),
expect_minions=(kwargs.pop('expect_minions', False) or verbose or show_timeout),
**kwargs
):
log.debug('return event: %s', ret)