1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-24 17:49:28 +03:00

M #-: fix minor bug in flow watchdog

This commit is contained in:
Ruben S. Montero
2020-05-20 10:01:38 +02:00
committed by GitHub

View File

@ -98,11 +98,14 @@ class ServiceWD
xml = Nokogiri::XML(Base64.decode64(content))
service_id = split_key[2].to_i
check = false
@mutex.synchronize do
next unless @services.include?(service_id)
check = @services.include?(service_id)
end
next unless check
node = xml.xpath('/HOOK_MESSAGE/VM/ID').text.to_i
state = xml.xpath('/HOOK_MESSAGE/STATE').text
lcm_state = xml.xpath('/HOOK_MESSAGE/LCM_STATE').text