(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:
Rick Bradley 2016-05-26 11:46:45 -05:00
parent 07ca820b69
commit 8943ff4935

View file

@ -72,18 +72,6 @@ module Vmpooler
end end
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) def update_result_hosts(result, template, vm)
result[template] ||= {} result[template] ||= {}
if result[template]['hostname'] if result[template]['hostname']