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:
parent
1cc05f0417
commit
8a9054f6dc
1 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue