Browse files

[rackspace|storage] disable cdn when deleting container

  • Loading branch information...
1 parent 35d5d64 commit 9772bd7822b74976c10d172574a84509eb3b2a5a @geemus geemus committed Feb 25, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/fog/storage/models/rackspace/directory.rb
View
1 lib/fog/storage/models/rackspace/directory.rb
@@ -15,6 +15,7 @@ class Directory < Fog::Model
def destroy
requires :key
connection.delete_container(key)
+ connection.cdn.put_container(key, 'X-CDN-Enabled' => 'False')
true
rescue Excon::Errors::NotFound
false

0 comments on commit 9772bd7

Please sign in to comment.