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:
parent
35d5d64f02
commit
9772bd7822
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ module Fog
|
||||||
def destroy
|
def destroy
|
||||||
requires :key
|
requires :key
|
||||||
connection.delete_container(key)
|
connection.delete_container(key)
|
||||||
|
connection.cdn.put_container(key, 'X-CDN-Enabled' => 'False')
|
||||||
true
|
true
|
||||||
rescue Excon::Errors::NotFound
|
rescue Excon::Errors::NotFound
|
||||||
false
|
false
|
||||||
|
|
Loading…
Add table
Reference in a new issue