deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@redhat.com
Subject [PATCH] Deltacloud - fix bug in to_hash (json) for storage_volumes - DTACLOUD-454
Date Tue, 05 Feb 2013 16:35:35 GMT
From: marios <marios@redhat.com>

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

Signed-off-by: marios <marios@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


Mime
View raw message