You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by mf...@redhat.com on 2013/03/22 13:48:10 UTC

[PATCH core 1/2] CIMI: Fixed typo in volumeTemplate#destroy (DTACLOUD-519)

From: Michal Fojtik <mf...@redhat.com>


Signed-off-by: Michal fojtik <mf...@redhat.com>
---
 server/lib/cimi/service/volume_template.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/lib/cimi/service/volume_template.rb b/server/lib/cimi/service/volume_template.rb
index d95ba72..89d2879 100644
--- a/server/lib/cimi/service/volume_template.rb
+++ b/server/lib/cimi/service/volume_template.rb
@@ -34,7 +34,7 @@ class CIMI::Service::VolumeTemplate < CIMI::Service::Base
   end
 
   def self.delete!(id, context)
-    current_db.volume_templates.first(:id => id).destroy
+    current_db.volume_templates_dataset.first(:id => id).destroy
   end
 
   def self.from_db(model, context)
-- 
1.8.1.4


[PATCH core 2/2] CIMI: Fixed typo in volumeConfiguration#destroy (DTACLOUD-518)

Posted by mf...@redhat.com.
From: Michal Fojtik <mf...@redhat.com>


Signed-off-by: Michal fojtik <mf...@redhat.com>
---
 server/lib/cimi/service/volume_configuration.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/lib/cimi/service/volume_configuration.rb b/server/lib/cimi/service/volume_configuration.rb
index ebb2c7c..ebab1cb 100644
--- a/server/lib/cimi/service/volume_configuration.rb
+++ b/server/lib/cimi/service/volume_configuration.rb
@@ -43,7 +43,7 @@ class CIMI::Service::VolumeConfiguration < CIMI::Service::Base
   end
 
   def self.delete!(id, context)
-    current_db.volume_configurations.first(:id => id).destroy
+    current_db.volume_configurations_dataset.first(:id => id).destroy
   end
 
   def self.find(id, context)
-- 
1.8.1.4