1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-31 18:34:31 +03:00

M #-: subscribe to service changes

This commit is contained in:
Alejandro Huertas
2020-05-18 18:33:42 +02:00
parent 181cdce470
commit ccf048cfb8

View File

@ -57,8 +57,7 @@ class ServiceWD
# Start services WD # Start services WD
# #
# @param service_id [Integer] Service ID to watch # @param service_pool [ServicePool] All services to check
# @param roles [Array] Service roles with its nodes
def start(service_pool) def start(service_pool)
Log.info LOG_COMP, 'Start watch dog' Log.info LOG_COMP, 'Start watch dog'
@ -159,9 +158,8 @@ class ServiceWD
# Check service roles state # Check service roles state
# #
# @param client [OpenNebula::Client] Client to make API calls # @param client [OpenNebula::Client] Client to make API calls
# @param service_id [Integer] Service ID to check # @param service_pool [ServicePool] All services to check
# @param roles [Array] Service roles with its nodes
def check_roles_state(client, service_pool) def check_roles_state(client, service_pool)
service_pool.each do |service| service_pool.each do |service|
service.info service.info