(POOLER-70) Remove get_vm_host_info from pool_manager

Previously the Pool Manager would use vSphere objects directly.  This commit
removes get_vm_host_info as this functionality is now in the vSphere VM
Provider.
This commit is contained in:
Glenn Sarti 2017-03-31 14:22:58 -07:00
parent 2974eac371
commit cf15829f05
2 changed files with 0 additions and 21 deletions

View file

@ -498,11 +498,6 @@ module Vmpooler
end end
end end
def get_vm_host_info(vm_object)
parent_host = vm_object.summary.runtime.host
[parent_host, parent_host.name]
end
def remove_vmpooler_migration_vm(pool, vm) def remove_vmpooler_migration_vm(pool, vm)
begin begin
$redis.srem('vmpooler__migration', vm) $redis.srem('vmpooler__migration', vm)

View file

@ -1667,22 +1667,6 @@ EOT
end end
end end
describe "#get_vm_host_info" do
before do
expect(subject).not_to be_nil
end
let(:vm_object) { double('vm_object') }
let(:parent_host) { double('parent_host') }
it 'should return an array with host information' do
expect(vm_object).to receive_message_chain(:summary, :runtime, :host).and_return(parent_host)
expect(parent_host).to receive(:name).and_return('vmhostname')
expect(subject.get_vm_host_info(vm_object)).to eq([parent_host,'vmhostname'])
end
end
describe "#execute!" do describe "#execute!" do
let(:threads) {{}} let(:threads) {{}}