Skip to content

Commit

Permalink
Use 1.8-style Hash syntax
Browse files Browse the repository at this point in the history
Previous commit used 1.9-style Hash syntax and broke the build. One of
these days we'll drop support for EOL versions of Ruby.
  • Loading branch information
jrgarcia committed Mar 17, 2017
1 parent 899385a commit 5877f49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rbvmomi/vim/Folder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def findByIp ip, type=RbVmomi::VIM::VirtualMachine, dc=nil
# @return [VIM::ManagedEntity]
def findByUuid(uuid, type = RbVmomi::VIM::VirtualMachine, dc = nil, instance_uuid = false)
prop_specs = {
entity: self,
instanceUuid: instance_uuid,
uuid: uuid,
vmSearch: type == RbVmomi::VIM::VirtualMachine
:entity => self,
:instanceUuid => instance_uuid,
:uuid => uuid,
:vmSearch => type == RbVmomi::VIM::VirtualMachine
}
prop_specs[:datacenter] = dc if dc
x = _connection.searchIndex.FindByUuid(prop_specs)
Expand Down

0 comments on commit 5877f49

Please sign in to comment.