Update client.py to check for no matching minions

This commit is contained in:
Colton Myers 2013-02-18 11:39:26 -07:00
parent b22a7eb6c8
commit e8d7d8cdc6

View File

@ -168,6 +168,11 @@ class LocalClient(object):
'commands?'
)
if not pub_data['minions']:
print('No minions matched the target. '
'No command was sent, no jid was assigned.')
return {}
# Failed to connect to the master and send the pub
if not 'jid' in pub_data:
return {}