From fe1d44e4126fd4b5b2676f54fb827efec71313c9 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mon, 8 Jun 2020 19:51:50 +0000 Subject: [PATCH] vhost-info: Add some code to help debugging in the future Signed-off-by: Pierre-Yves Chibon --- scripts/vhost-info | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/scripts/vhost-info b/scripts/vhost-info index fb4b73829a..0c339958d4 100755 --- a/scripts/vhost-info +++ b/scripts/vhost-info @@ -26,11 +26,20 @@ class OutputCallback(CallbackBase): self.mem_per_host = {} self.mem_used_in_vm = {} self.cpu_used_in_vm = {} - +# To increate debugging info +# self._display.verbosity = 5 def v2_runner_on_unreachable(self, result): self.unreachable.add(result._host.get_name()) +# Comment this out if you need to debug further the script +# def v2_on_any(self, *args, **kwargs): +# print("OutputCallback - any") +# print(args) +# print(kwargs) +# result = args[0] +# print(result._result) + def v2_runner_on_ok(self, result, *args, **kwargs): vhostname=result._host.get_name() if result._result['invocation']['module_args']['command'] == 'nodeinfo':