raiseAnsibleError("failed to parse executable inventory script results from {0}: {1}".format(to_native(self.filename),to_native(e)))
ifnotisinstance(self.raw,Mapping):
sys.stderr.write(err +"\n")
sys.stderr.write(to_native(err)+"\n")
raiseAnsibleError("failed to parse executable inventory script results from {0}: data needs to be formatted as a json dict".format(to_native(self.filename)))