Do not prematurily raise an exception, let the main loop take care of it instead

This commit is contained in:
Bo Maryniuk 2016-10-24 15:24:52 +02:00
parent ee48deeded
commit 44da411c3a

View file

@ -82,12 +82,5 @@ class Roster(object):
except IOError as exc:
pass
if not targets:
raise salt.exceptions.SaltSystemExit(
'No hosts found with target {0} of type {1}'.format(
tgt,
tgt_type)
)
log.debug('Matched minions: {0}'.format(targets))
return targets