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/02/05 17:35:35 UTC

[PATCH] Deltacloud - fix bug in to_hash (json) for storage_volumes - DTACLOUD-454

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

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

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

diff --git a/server/lib/deltacloud/models/storage_volume.rb b/server/lib/deltacloud/models/storage_volume.rb
index 1ec76d6..4132592 100644
--- a/server/lib/deltacloud/models/storage_volume.rb
+++ b/server/lib/deltacloud/models/storage_volume.rb
@@ -42,7 +42,7 @@ class StorageVolume < BaseModel
       :capacity => capacity,
     }
     r[:actions] = (actions || []).map { |a|
-      { :href => context.send("#{a}_storage_volume", self.id), :rel => a }
+      { :href => context.send("#{a}_storage_volume_url", self.id), :rel => a }
     }
     if instance_id
       r[:instance] = { :id => instance_id, :href => context.instance_url(instance_id), :rel => :instance }
-- 
1.7.11.7


Re: [PATCH] Deltacloud - fix bug in to_hash (json) for storage_volumes - DTACLOUD-454

Posted by Ronelle Landy <rl...@redhat.com>.
ACK - test output copied in DTACLOUD-454

----- Original Message -----
> From: marios@redhat.com
> To: dev@deltacloud.apache.org
> Sent: Tuesday, February 5, 2013 11:35:35 AM
> Subject: [PATCH] Deltacloud - fix bug in to_hash (json) for storage_volumes - DTACLOUD-454
> 
> From: marios <ma...@redhat.com>
> 
> https://issues.apache.org/jira/browse/DTACLOUD-454
> 
> Signed-off-by: marios <ma...@redhat.com>
> ---
>  server/lib/deltacloud/models/storage_volume.rb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/lib/deltacloud/models/storage_volume.rb
> b/server/lib/deltacloud/models/storage_volume.rb
> index 1ec76d6..4132592 100644
> --- a/server/lib/deltacloud/models/storage_volume.rb
> +++ b/server/lib/deltacloud/models/storage_volume.rb
> @@ -42,7 +42,7 @@ class StorageVolume < BaseModel
>        :capacity => capacity,
>      }
>      r[:actions] = (actions || []).map { |a|
> -      { :href => context.send("#{a}_storage_volume", self.id), :rel
> => a }
> +      { :href => context.send("#{a}_storage_volume_url", self.id),
> :rel => a }
>      }
>      if instance_id
>        r[:instance] = { :id => instance_id, :href =>
>        context.instance_url(instance_id), :rel => :instance }
> --
> 1.7.11.7
> 
>