Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Update vmodl.db for 6.0 API
Browse files Browse the repository at this point in the history
- We used vim/vmodl/previous/vim.version.version10/vim-declarations.xml
- Default to 6.0 when no 'rev:' is specified
- Tested with a 6.0 and 5.5 VC
  • Loading branch information
Colin O'Byrne and Martin Marinov committed Apr 28, 2016
1 parent b4294d2 commit 5ed2c41
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/rbvmomi/vim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def self.connect opts
opts[:path] ||= '/sdk'
opts[:ns] ||= 'urn:vim25'
rev_given = opts[:rev] != nil
opts[:rev] = '4.0' unless rev_given
opts[:rev] = '6.0' unless rev_given
opts[:debug] = (!ENV['RBVMOMI_DEBUG'].empty? rescue false) unless opts.member? :debug

new(opts).tap do |vim|
Expand All @@ -39,7 +39,7 @@ def self.connect opts
end
unless rev_given
rev = vim.serviceContent.about.apiVersion
vim.rev = [rev, '5.5'].min
vim.rev = [rev, '6.0'].min
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/rbvmomi/vim/ReflectManagedMethodExecuter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module RbVmomi

class VIM::ReflectManagedMethodExecuter
def fetch moid, prop
result = FetchSoap(:moid => moid, :version => 'urn:vim25/5.0', :prop => prop)
result = FetchSoap(:moid => moid, :version => 'urn:vim25/6.0', :prop => prop)
xml = Nokogiri(result.response)
_connection.deserializer.deserialize xml.root, nil
end
Expand All @@ -16,7 +16,7 @@ def execute moid, method, args
soap_arg.val = xml.target!
end
end
result = ExecuteSoap(:moid => moid, :version => 'urn:vim25/5.0',
result = ExecuteSoap(:moid => moid, :version => 'urn:vim25/6.0',
:method => method, :argument => soap_args)
if result
_connection.deserializer.deserialize Nokogiri(result.response).root, nil
Expand Down
Binary file modified vmodl.db
Binary file not shown.

0 comments on commit 5ed2c41

Please sign in to comment.