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:
parent
2a47ced3b2
commit
bf1e928a7d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user