Skip to content

Commit

Permalink
yield outside of timeoutable block in waiter
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Parak committed Aug 15, 2017
1 parent 41a1b01 commit 6eb1cc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/backends/opennebula/helpers/waiter.rb
Expand Up @@ -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
Expand Down

0 comments on commit 6eb1cc1

Please sign in to comment.