fixed a couple of bugs

This commit is contained in:
Brian Coca 2015-07-08 22:31:52 -04:00
parent 0bbf5927be
commit aaad33ccb6
2 changed files with 2 additions and 2 deletions
lib/ansible/plugins/callback

View file

@ -114,7 +114,7 @@ class CallbackBase:
host = result._host.get_name()
#FIXME, get item to pass through
item = None
self.runner_on_skipped(host, result._result, item)
self.runner_on_skipped(host, item)
def v2_runner_on_unreachable(self, result):
host = result._host.get_name()

View file

@ -45,7 +45,7 @@ class CallbackModule(CallbackBase):
self.logger.info('%s ansible-command: task execution OK; host: %s; message: %s' % (self.hostname,host,json.dumps(res, sort_keys=True)))
def runner_on_skipped(self, host, item=None):
self.logger.info('%s ansible-command: task execution SKIPPED; host: %s; message: %s' % (self.hostname,host,json.dumps(res, sort_keys=True)))
self.logger.info('%s ansible-command: task execution SKIPPED; host: %s; message: %s' % (self.hostname,host, 'skipped'))
def runner_on_unreachable(self, host, res):
self.logger.error('%s ansible-command: task execution UNREACHABLE; host: %s; message: %s' % (self.hostname,host,json.dumps(res, sort_keys=True)))