From ccf048cfb8cc8623887b51e43b85cfefba24a324 Mon Sep 17 00:00:00 2001 From: Alejandro Huertas Date: Mon, 18 May 2020 18:33:42 +0200 Subject: [PATCH] M #-: subscribe to service changes --- src/flow/lib/ServiceWatchDog.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/flow/lib/ServiceWatchDog.rb b/src/flow/lib/ServiceWatchDog.rb index 0ccfa13e03..14fbd6bf7c 100644 --- a/src/flow/lib/ServiceWatchDog.rb +++ b/src/flow/lib/ServiceWatchDog.rb @@ -57,8 +57,7 @@ class ServiceWD # Start services WD # - # @param service_id [Integer] Service ID to watch - # @param roles [Array] Service roles with its nodes + # @param service_pool [ServicePool] All services to check def start(service_pool) Log.info LOG_COMP, 'Start watch dog' @@ -159,9 +158,8 @@ class ServiceWD # Check service roles state # - # @param client [OpenNebula::Client] Client to make API calls - # @param service_id [Integer] Service ID to check - # @param roles [Array] Service roles with its nodes + # @param client [OpenNebula::Client] Client to make API calls + # @param service_pool [ServicePool] All services to check def check_roles_state(client, service_pool) service_pool.each do |service| service.info