You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by ma...@redhat.com on 2013/01/16 13:30:46 UTC

[PATCH] Fix for DTACLOUD-419 - Typo in Intance model to_hash

From: marios <ma...@redhat.com>

https://issues.apache.org/jira/browse/DTACLOUD-419

Signed-off-by: marios <ma...@redhat.com>
---
 server/lib/deltacloud/models/instance.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/lib/deltacloud/models/instance.rb b/server/lib/deltacloud/models/instance.rb
index fcfe092..81a5467 100644
--- a/server/lib/deltacloud/models/instance.rb
+++ b/server/lib/deltacloud/models/instance.rb
@@ -72,7 +72,7 @@ class Instance < BaseModel
       r.merge!(:authentication => { :keyname => keyname }) if keyname
     end
     if context.driver.class.has_feature?(:instances, :authentication_password)
-      r.merge!(:authentication => { :user => username, :password => password }) if user
+      r.merge!(:authentication => { :user => username, :password => password }) if username
     end
     r
   end
-- 
1.7.11.7


Re: [PATCH] Fix for DTACLOUD-419 - Typo in Intance model to_hash

Posted by Michal Fojtik <mf...@redhat.com>.
On 01/16, marios@redhat.com wrote:

ACK!

> From: marios <ma...@redhat.com>
> 
> https://issues.apache.org/jira/browse/DTACLOUD-419
> 
> Signed-off-by: marios <ma...@redhat.com>
> ---
>  server/lib/deltacloud/models/instance.rb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/lib/deltacloud/models/instance.rb b/server/lib/deltacloud/models/instance.rb
> index fcfe092..81a5467 100644
> --- a/server/lib/deltacloud/models/instance.rb
> +++ b/server/lib/deltacloud/models/instance.rb
> @@ -72,7 +72,7 @@ class Instance < BaseModel
>        r.merge!(:authentication => { :keyname => keyname }) if keyname
>      end
>      if context.driver.class.has_feature?(:instances, :authentication_password)
> -      r.merge!(:authentication => { :user => username, :password => password }) if user
> +      r.merge!(:authentication => { :user => username, :password => password }) if username
>      end
>      r
>    end
> -- 
> 1.7.11.7
> 

-- 
Michal Fojtik <mf...@redhat.com>
Deltacloud API, CloudForms