示例#1
0
 def on_failed(self, host, results):
     invocation = results.get('invocation', None)
     if not invocation or invocation.startswith(
             'setup ') or invocation.startswith('async_status '):
         print "failed: [%s] => %s\n" % (host, utils.smjson(results))
     else:
         print "failed: [%s] => %s => %s\n" % (host, invocation,
                                               utils.smjson(results))
示例#2
0
 def on_ok(self, host, host_result):
     # show verbose output for non-setup module results if --verbose is used
     if not self.verbose or host_result.get("verbose_override",
                                            None) is not None:
         print "ok: [%s]\n" % (host)
     else:
         print "ok: [%s] => %s" % (host, utils.smjson(host_result))
示例#3
0
 def on_ok(self, host, host_result):
     # show verbose output for non-setup module results if --verbose is used
     if not self.verbose or host_result.get("verbose_override",None) is not None:
         print "ok: [%s]\n" % (host)
     else:
         print "ok: [%s] => %s" % (host, utils.smjson(host_result))
示例#4
0
 def on_failed(self, host, results):
     print "failed: [%s] => %s\n" % (host, utils.smjson(results))
示例#5
0
 def on_failed(self, host, results):
     print "failed: [%s] => %s\n" % (host, utils.smjson(results))
示例#6
0
 def on_failed(self, host, results):
     invocation = results.get('invocation',None)
     if not invocation or invocation.startswith('setup ') or invocation.startswith('async_status '):
         print "failed: [%s] => %s\n" % (host, utils.smjson(results))
     else: 
         print "failed: [%s] => %s => %s\n" % (host, invocation, utils.smjson(results))