mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Reduce object lookups for get_vm
This commit reduces object lookups used for get_vm. Without this change get_vm looks up the VM folder, which is already used and known to find the vm with find_vm.
This commit is contained in:
parent
8be578493a
commit
8840ef4a5c
2 changed files with 18 additions and 22 deletions
|
|
@ -190,7 +190,7 @@ EOT
|
|||
expect(result['name']).to eq(vmname)
|
||||
end
|
||||
|
||||
['hostname','template','poolname','boottime','powerstate'].each do |testcase|
|
||||
['hostname','boottime','powerstate'].each do |testcase|
|
||||
it "should return nil for #{testcase}" do
|
||||
result = subject.get_vm(poolname,vmname)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue