Esempio n. 1
0
 def on_unreachable(self, host, res):
     if type(res) == dict:
         res = res.get('msg', '')
     print "%s | FAILED => %s" % (host, res)
     if self.options.tree:
         utils.write_tree_file(self.options.tree, host,
                               utils.bigjson(dict(failed=True, msg=res)))
Esempio n. 2
0
 def _on_any(self, host, result):
     print utils.host_report_msg(host, self.options.module_name, result, self.options.one_line)
     if self.options.tree:
         utils.write_tree_file(self.options.tree, host, utils.bigjson(result))
Esempio n. 3
0
 def on_async_failed(self, host, res, jid):
     print "<job %s> FAILED on %s => %s"%(jid, host, utils.bigjson(res))
Esempio n. 4
0
 def on_async_ok(self, host, res, jid):
     print "<job %s> finished on %s => %s"%(jid, host, utils.bigjson(res))
Esempio n. 5
0
 def on_unreachable(self, host, res):
     if type(res) == dict:
         res = res.get('msg','')
     print "%s | FAILED => %s" % (host, res)
     if self.options.tree:
         utils.write_tree_file(self.options.tree, host, utils.bigjson(dict(failed=True, msg=res)))
Esempio n. 6
0
 def _on_any(self, host, result):
     print utils.host_report_msg(host, self.options.module_name, result,
                                 self.options.one_line)
     if self.options.tree:
         utils.write_tree_file(self.options.tree, host,
                               utils.bigjson(result))
Esempio n. 7
0
 def on_async_failed(self, host, res, jid):
     print "<job %s> FAILED on %s => %s" % (jid, host, utils.bigjson(res))
Esempio n. 8
0
 def on_async_ok(self, host, res, jid):
     print "<job %s> finished on %s => %s" % (jid, host, utils.bigjson(res))
Esempio n. 9
0
 def on_unreachable(self, host, res):
     print "%s | FAILED => %s" % (host, res)
     if self.options.tree:
         utils.write_tree_file(self.options.tree, host, utils.bigjson(dict(failed=True, msg=res)))
Esempio n. 10
0
 def on_unreachable(self, host, res):
     print "%s | FAILED => %s" % (host, res)
     if self.options.tree:
         utils.write_tree_file(self.options.tree, host,
                               utils.bigjson(dict(failed=True, msg=res)))