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/01/02 13:23:52 UTC

[PATCH core 2/7] CIMI: Removed 'context' from delete_attributes_for in Volume

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


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

diff --git a/server/lib/cimi/models/volume.rb b/server/lib/cimi/models/volume.rb
index bbc61f9..26b757e 100644
--- a/server/lib/cimi/models/volume.rb
+++ b/server/lib/cimi/models/volume.rb
@@ -71,7 +71,7 @@ class CIMI::Model::Volume < CIMI::Model::Base
 
   def self.delete!(id, context)
     context.driver.destroy_storage_volume(context.credentials, {:id=>id} )
-    context.delete_attributes_for(StorageVolume.new(:id => id))
+    delete_attributes_for(StorageVolume.new(:id => id))
   end
 
   def self.find_to_attach_from_json(json_in, context)
-- 
1.8.0.2


Re: [PATCH core 2/7] CIMI: Removed 'context' from delete_attributes_for in Volume

Posted by "marios@redhat.com" <ma...@redhat.com>.
ack

On 02/01/13 14:23, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mf...@redhat.com>
> 
> 
> Signed-off-by: Michal fojtik <mf...@redhat.com>
> ---
>  server/lib/cimi/models/volume.rb | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/server/lib/cimi/models/volume.rb b/server/lib/cimi/models/volume.rb
> index bbc61f9..26b757e 100644
> --- a/server/lib/cimi/models/volume.rb
> +++ b/server/lib/cimi/models/volume.rb
> @@ -71,7 +71,7 @@ class CIMI::Model::Volume < CIMI::Model::Base
>  
>    def self.delete!(id, context)
>      context.driver.destroy_storage_volume(context.credentials, {:id=>id} )
> -    context.delete_attributes_for(StorageVolume.new(:id => id))
> +    delete_attributes_for(StorageVolume.new(:id => id))
>    end
>  
>    def self.find_to_attach_from_json(json_in, context)
>