rackspace/ruby-cloudfiles — pull request #79 by JCallicoat (2012-06-29 05:06:32+00:00)
Title: Container::cdn_enabled throws NoSuchContainer

For non-public containers, calling cdn_enabled in turn accesses :cdn_metadata which throws NoSuchContainer.

>> container = client.container("glance")
=> glance
>> container.cdn_enabled
CloudFiles::Exception::NoSuchContainer: Container glance does not exist
from /var/lib/gems/1.9.1/gems/cloudfiles-1.5.0.1/lib/cloudfiles/container.rb:72:in `rescue in cdn_metadata'
from /var/lib/gems/1.9.1/gems/cloudfiles-1.5.0.1/lib/cloudfiles/container.rb:60:in `cdn_metadata'
from /var/lib/gems/1.9.1/gems/cloudfiles-1.5.0.1/lib/cloudfiles/container.rb:129:in `cdn_enabled'
from (irb):4
from /usr/bin/irb:12:in `

'