Get rid of dead code

This commit is contained in:
root 2015-12-13 01:27:23 +00:00
parent 5c01af6bef
commit 10005d65e1

View file

@ -27,20 +27,6 @@ class ResultAccumulator(CallbackBase):
self.host_status[result._host.get_name()] = 'failed'
class CallbackModule(CallbackBase):
def v2_runner_on_unreachable(self, result):
self._display.display("%s down" % result._host.get_name())
def v2_runner_on_ok(self, result, *args, **kwargs):
if result._result.get('stdout', '').strip() == 'none':
self._display.display('%s no' % result._host.get_name())
else:
self._display.display('%s yes' % result._host.get_name())
def v2_runner_on_failed(self, result, *args, **kwargs):
self._display.display('%s: command failed on host' % result._host.get_name())
if __name__ == '__main__':
pattern = 'builders'
if len(sys.argv) > 1: