mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 10:28:41 -05:00
(QENG-3919) minor readability tweak in refactored method
This commit is contained in:
parent
2f9bc4023b
commit
5032b51c81
1 changed files with 1 additions and 3 deletions
|
|
@ -73,9 +73,7 @@ module Vmpooler
|
|||
end
|
||||
|
||||
def checkout_vm(template, result)
|
||||
vm = fetch_single_vm(template)
|
||||
|
||||
unless vm.nil?
|
||||
if vm = fetch_single_vm(template)
|
||||
account_for_starting_vm(template, vm)
|
||||
update_result_hosts(result, template, vm)
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue