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

[rackspace|storage] disable cdn when deleting container

This commit is contained in:
geemus 2011-02-25 14:49:17 -08:00
parent 35d5d64f02
commit 9772bd7822

View file

@ -15,6 +15,7 @@ module Fog
def destroy
requires :key
connection.delete_container(key)
connection.cdn.put_container(key, 'X-CDN-Enabled' => 'False')
true
rescue Excon::Errors::NotFound
false