deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject git commit: Vsphere: Changed the default value of 'opts' to empty Hash (DTACLOUD-279)
Date Thu, 12 Jul 2012 14:04:59 GMT
Updated Branches:
  refs/heads/master 9624d76a1 -> 4e3015fd4


Vsphere: Changed the default value of 'opts' to empty Hash (DTACLOUD-279)


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/4e3015fd
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/4e3015fd
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/4e3015fd

Branch: refs/heads/master
Commit: 4e3015fd45439e0e300286e095dcdb8ab6821caf
Parents: 9624d76
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Thu Jul 12 16:05:51 2012 +0200
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Thu Jul 12 16:05:51 2012 +0200

----------------------------------------------------------------------
 .../deltacloud/drivers/vsphere/vsphere_driver.rb   |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/4e3015fd/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb b/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
index 604ddbe..2e868ca 100644
--- a/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
+++ b/server/lib/deltacloud/drivers/vsphere/vsphere_driver.rb
@@ -73,7 +73,7 @@ module Deltacloud::Drivers::Vsphere
 
     # Images are virtual machines with 'template' flag set to be true.
     # Thus we're getting them using find_vm and list_virtual_machines
-    def images(credentials, opts=nil)
+    def images(credentials, opts={})
       cloud = new_client(credentials)
       img_arr = []
       profiles = hardware_profiles(credentials)
@@ -123,7 +123,7 @@ module Deltacloud::Drivers::Vsphere
     end
 
     # List all datacenters managed by the vSphere or vCenter entrypoint.
-    def realms(credentials, opts=nil)
+    def realms(credentials, opts={})
       vsphere = new_client(credentials)
       safely do
         if opts and opts[:id]
@@ -140,7 +140,7 @@ module Deltacloud::Drivers::Vsphere
 
     # List all running instances, across all datacenters. DeltaCloud API does
     # not yet support filtering instances by realm.
-    def instances(credentials, opts=nil)
+    def instances(credentials, opts={})
       cloud = new_client(credentials)
       inst_arr, machine_vms, pending_vms = [], [], []
       safely do
@@ -212,7 +212,7 @@ module Deltacloud::Drivers::Vsphere
     end
 
 
-    def create_instance(credentials, image_id, opts)
+    def create_instance(credentials, image_id, opts={})
       vsphere = new_client(credentials)
       safely do
         if opts[:hwp_cpu]


Mime
View raw message