1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Fix an issue in copy mocking portion.

This commit is contained in:
Rupak Ganguly 2012-04-02 19:04:02 -04:00
parent 1cc05f0417
commit 8a9054f6dc

View file

@ -40,7 +40,13 @@ module Fog
container = self.data[:containers][container_name]
if (source_container && container)
response.status = 201
container[:objects][object_name] = source_container[:objects][source_object_name]
source_object = source_container[:objects][source_object_name]
target_object = source_object.dup
target_object.merge!({
'Key' => object_name,
'Date' => Fog::Time.now.to_date_header
})
container[:objects][object_name] = target_object
else
raise Fog::Storage::HP::NotFound
end