deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: [PATCH] Fix issue reported by Michal Fojtik using Openstack through CIMI - list images giving error
Date Wed, 29 Feb 2012 14:45:04 GMT
ACK.

Michal Fojtik
http://deltacloud.org
mfojtik@redhat.com



On Feb 29, 2012, at 3:11 PM, marios@redhat.com wrote:

> From: marios <marios@redhat.com>
> 
> Make opts={} rather than opts=nil to prevent undefined method `[]' for nil:NilClass
> 
> Signed-off-by: marios <marios@redhat.com>
> ---
> .../drivers/openstack/openstack_driver.rb          |    4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
> 
> 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
> -- 
> 1.7.6.5
> 


Mime
View raw message