From aa493ed56496316fc738a527a8dbbe50ec5a664c Mon Sep 17 00:00:00 2001 From: James Herdman Date: Mon, 14 May 2012 14:45:03 -0400 Subject: [PATCH] Silence warning regarding splat operator --- lib/fog/vsphere/compute.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fog/vsphere/compute.rb b/lib/fog/vsphere/compute.rb index f75bab8b8..6c9fc1ec9 100644 --- a/lib/fog/vsphere/compute.rb +++ b/lib/fog/vsphere/compute.rb @@ -61,7 +61,7 @@ module Fog def convert_vm_mob_ref_to_attr_hash(vm_mob_ref) return nil unless vm_mob_ref - props = vm_mob_ref.collect! *ATTR_TO_PROP.values.uniq + props = vm_mob_ref.collect!(*ATTR_TO_PROP.values.uniq) # NOTE: Object.tap is in 1.8.7 and later. # Here we create the hash object that this method returns, but first we need # to add a few more attributes that require additional calls to the vSphere