Merge pull request #224 from glennsarti/gh-213-remove-underscore-connection

(GH-213) Remove use of private _connection method
This commit is contained in:
Rob Braden 2017-06-20 15:11:02 -07:00 committed by GitHub
commit cfc1b61f0e
2 changed files with 1 additions and 22 deletions

View file

@ -675,7 +675,7 @@ module Vmpooler
vmdk_datastore = find_datastore(datastore, connection)
vm_files = vmdk_datastore._connection.serviceContent.propertyCollector.collectMultiple vmdk_datastore.vm, 'layoutEx.file'
vm_files = connection.serviceContent.propertyCollector.collectMultiple vmdk_datastore.vm, 'layoutEx.file'
vm_files.keys.each do |f|
vm_files[f]['layoutEx.file'].each do |l|
if l.name =~ /^\[#{vmdk_datastore.name}\] #{vmname}\/#{vmname}_([0-9]+).vmdk/