Handle non "local" salt-call returns

This commit is contained in:
Thomas S Hatch 2013-07-22 19:40:50 -06:00
parent f62771a227
commit 5ac51cd64e

View File

@ -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?'}