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

Fix a bug where cdn state was not preserved.

This commit is contained in:
Rupak Ganguly 2012-04-17 11:50:33 -04:00
parent 9c84908ded
commit 34dfb733f9

View file

@ -38,6 +38,9 @@ module Fog
data.body.each do |file|
directory.files << directory.files.new(file)
end
# set the cdn state for the directory
directory.cdn_enabled?
directory
rescue Fog::Storage::HP::NotFound
nil