mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Handle non "local" salt-call returns
This commit is contained in:
parent
f62771a227
commit
5ac51cd64e
@ -230,6 +230,8 @@ class Single(multiprocessing.Process):
|
||||
try:
|
||||
data = json.loads(ret)
|
||||
return {self.id: data['local']}
|
||||
except KeyError:
|
||||
return {self.id: data}
|
||||
except Exception:
|
||||
return {self.id: 'No valid data returned, is ssh key deployed?'}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user