From 6eb1cc1dcc16ca1784057123f695770affd9982c Mon Sep 17 00:00:00 2001 From: Boris Parak Date: Tue, 15 Aug 2017 11:06:17 +0200 Subject: [PATCH] `yield` outside of timeoutable block in waiter --- app/lib/backends/opennebula/helpers/waiter.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/backends/opennebula/helpers/waiter.rb b/app/lib/backends/opennebula/helpers/waiter.rb index 0a34c447..ac6559a9 100644 --- a/app/lib/backends/opennebula/helpers/waiter.rb +++ b/app/lib/backends/opennebula/helpers/waiter.rb @@ -22,9 +22,9 @@ def wait_until(virtual_machine, state, timeout = 60) client(Errors::Backend::EntityStateError) { virtual_machine.info } break if virtual_machine.lcm_state_str == state end - - yield virtual_machine end + + yield virtual_machine end end end