mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Do not prematurily raise an exception, let the main loop take care of it instead
This commit is contained in:
parent
ee48deeded
commit
44da411c3a
1 changed files with 0 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue