deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject git commit: Fix issue reported by Michal Fojtik using Openstack through CIMI - list images giving error
Date Wed, 29 Feb 2012 15:09:04 GMT
Updated Branches:
  refs/heads/master a1f81d29d -> 37b077811


Fix issue reported by Michal Fojtik using Openstack through CIMI - list images giving error

Make opts={} rather than opts=nil to prevent undefined method `[]' for nil:NilClass


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

Branch: refs/heads/master
Commit: 37b0778117fc8b7176a4cd8ed144a32f7d0e6e3e
Parents: a1f81d2
Author: marios <marios@redhat.com>
Authored: Wed Feb 29 16:09:19 2012 +0200
Committer: marios <marios@redhat.com>
Committed: Wed Feb 29 16:09:19 2012 +0200

----------------------------------------------------------------------
 .../drivers/openstack/openstack_driver.rb          |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/37b07781/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/openstack/openstack_driver.rb b/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
index 5e49392..845ddee 100644
--- a/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
+++ b/server/lib/deltacloud/drivers/openstack/openstack_driver.rb
@@ -55,7 +55,7 @@ module Deltacloud
           end
         end
 
-        def images(credentials, opts=nil)
+        def images(credentials, opts={})
           os = new_client(credentials)
           results = []
           profiles = hardware_profiles(credentials)
@@ -95,7 +95,7 @@ module Deltacloud
           end
         end
 
-        def realms(credentials, opts=nil)
+        def realms(credentials, opts={})
           os = new_client(credentials)
           limits = ""
           safely do


Mime
View raw message