lib/fog/rackspace/models/block_storage/snapshot.rb in fog-maestrodev-1.7.0.20121114190951 vs lib/fog/rackspace/models/block_storage/snapshot.rb in fog-maestrodev-1.8.0.20130109172219

- old
+ new

@@ -24,21 +24,22 @@ state == AVAILABLE end def save(force = false) requires :volume_id - data = connection.create_snapshot(volume_id, { + raise IdentifierTaken.new('Resaving may cause a duplicate snapshot to be created') if persisted? + data = service.create_snapshot(volume_id, { :display_name => display_name, :display_description => display_description, :force => force }) merge_attributes(data.body['snapshot']) true end def destroy requires :identity - connection.delete_snapshot(identity) + service.delete_snapshot(identity) true end end end end