mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 10:28:41 -05:00
(QENG-3919) Drop now-orphaned checkout_vm method
We kept this up-to-date while we were upgrading and refactoring, but, turns out, this method is no longer called anywhere. 💀 🔥
This commit is contained in:
parent
07ca820b69
commit
8943ff4935
1 changed files with 0 additions and 12 deletions
|
|
@ -72,18 +72,6 @@ module Vmpooler
|
|||
end
|
||||
end
|
||||
|
||||
def checkout_vm(template, result)
|
||||
if vm = fetch_single_vm(template)
|
||||
account_for_starting_vm(template, vm)
|
||||
update_result_hosts(result, template, vm)
|
||||
else
|
||||
status 503
|
||||
result['ok'] = false
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
def update_result_hosts(result, template, vm)
|
||||
result[template] ||= {}
|
||||
if result[template]['hostname']
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue