Exemplo 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)))
Exemplo 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))
Exemplo n.º 3
0
 def on_async_failed(self, host, res, jid):
     print "<job %s> FAILED on %s => %s"%(jid, host, utils.bigjson(res))
Exemplo n.º 4
0
 def on_async_ok(self, host, res, jid):
     print "<job %s> finished on %s => %s"%(jid, host, utils.bigjson(res))
Exemplo 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)))
Exemplo 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))
Exemplo n.º 7
0
 def on_async_failed(self, host, res, jid):
     print "<job %s> FAILED on %s => %s" % (jid, host, utils.bigjson(res))
Exemplo n.º 8
0
 def on_async_ok(self, host, res, jid):
     print "<job %s> finished on %s => %s" % (jid, host, utils.bigjson(res))
Exemplo 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)))
Exemplo 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)))