deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "marios@redhat.com" <mandr...@redhat.com>
Subject Re: [PATCH core 1/2] Mock: Added :destroy_storage_snapshot operation
Date Tue, 10 Apr 2012 11:42:16 GMT
ACK both patches

On 05/04/12 14:29, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mfojtik@redhat.com>
> 
> 
> Signed-off-by: Michal fojtik <mfojtik@redhat.com>
> ---
>  server/lib/deltacloud/drivers/mock/mock_driver.rb |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/server/lib/deltacloud/drivers/mock/mock_driver.rb b/server/lib/deltacloud/drivers/mock/mock_driver.rb
> index d8882db..b58872c 100644
> --- a/server/lib/deltacloud/drivers/mock/mock_driver.rb
> +++ b/server/lib/deltacloud/drivers/mock/mock_driver.rb
> @@ -299,6 +299,11 @@ module Deltacloud::Drivers::Mock
>        snapshots
>      end
>  
> +    def destroy_storage_snapshot(credentials, opts={})
> +      check_credentials(credentials)
> +      @client.destroy(:storage_snapshots, opts[:id])
> +    end
> +
>      def keys(credentials, opts={})
>        check_credentials(credentials)
>        result = @client.build_all(Key)


Mime
View raw message