mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 02:18: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
|
end
|
||||||
|
|
||||||
def checkout_vm(template, result)
|
def checkout_vm(template, result)
|
||||||
vm = fetch_single_vm(template)
|
if vm = fetch_single_vm(template)
|
||||||
|
|
||||||
unless vm.nil?
|
|
||||||
account_for_starting_vm(template, vm)
|
account_for_starting_vm(template, vm)
|
||||||
update_result_hosts(result, template, vm)
|
update_result_hosts(result, template, vm)
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue