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