From b1d27857077be4a46049c908a7b32ed7e54f0502 Mon Sep 17 00:00:00 2001 From: Tino Vazquez Date: Mon, 4 Nov 2013 17:32:52 +0100 Subject: [PATCH] StopMonitor action for IM dummy drivers --- src/im_mad/dummy/one_im_dummy.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/im_mad/dummy/one_im_dummy.rb b/src/im_mad/dummy/one_im_dummy.rb index 9e8b145db8..f12aeea009 100755 --- a/src/im_mad/dummy/one_im_dummy.rb +++ b/src/im_mad/dummy/one_im_dummy.rb @@ -45,6 +45,7 @@ class DummyInformationManager < OpenNebulaDriver # register actions register_action(:MONITOR, method("action_monitor")) + register_action(:STOPMONITOR, method("stop_monitor")) end # Execute the sensor array in the remote host @@ -72,6 +73,10 @@ class DummyInformationManager < OpenNebulaDriver send_message("MONITOR", RESULT[:success], number, results) end + + def stop_monitor(number, host) + send_message("STOPMONITOR", RESULT[:success], number, nil) + end end