saltstack/salt — pull request #6296 by felskrone (2013-07-24 07:20:18+00:00)
Title: cmd_iter_no_block did not pass on tgt to get_iter_returns(). That makes ...

salt.Client.LocalClient.cmd_iter_no_block() does not pass on the tgt-variable to salt.Client.LocalClient.get_iter_returns(). In get_iter_returns() tgt defaults to tgt='*' so the saltmaster always queries ALL minions with saltutil.find_job in line 660 while waiting for results to return.

While this might not be a problem in smaller setups, asking thousands if minions for a job which only targeted a single minion is not optimal.