Skip to content

Commit

Permalink
Resolving issue with removing snapshot as etag doesnot match
Browse files Browse the repository at this point in the history
  • Loading branch information
Priyanka Sood committed Nov 14, 2019
1 parent ac5bef6 commit eb33899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oneview-sdk/resource/api200/volume.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def create_snapshot(snapshot, description = nil)
# @return [true] if snapshot was created successfully
def delete_snapshot(name)
result = get_snapshot(name)
response = @client.rest_delete(result['uri'], { 'If-Match' => @data['eTag'] }, @api_version)
response = @client.rest_delete(result['uri'], { 'If-Match' => result['eTag'] }, @api_version)
@client.response_handler(response)
true
end
Expand Down

0 comments on commit eb33899

Please sign in to comment.