mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Update client.py to check for no matching minions
This commit is contained in:
parent
b22a7eb6c8
commit
e8d7d8cdc6
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user