mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Merge branch '2017.7' of https://github.com/saltstack/salt into add_subnet
This commit is contained in:
commit
0da6301d5a
@ -1283,6 +1283,13 @@ class LocalClient(object):
|
||||
if raw['data']['return'] == {}:
|
||||
continue
|
||||
|
||||
# if the minion throws an exception containing the word "return"
|
||||
# the master will try to handle the string as a dict in the next
|
||||
# step. Check if we have a string, log the issue and continue.
|
||||
if isinstance(raw['data']['return'], six.string_types):
|
||||
log.error("unexpected return from minion: %s", raw)
|
||||
continue
|
||||
|
||||
if 'return' in raw['data']['return'] and \
|
||||
raw['data']['return']['return'] == {}:
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user