mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(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:
parent
2974eac371
commit
cf15829f05
2 changed files with 0 additions and 21 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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) {{}}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue