1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

M #-: fix minor bug in flow watchdog

This commit is contained in:
Alejandro Huertas 2020-05-20 09:49:29 +02:00
parent 2a47ced3b2
commit bf1e928a7d
No known key found for this signature in database
GPG Key ID: 3044AF06BE405104

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