Details
Description
For Rackspace Cloudfiles, container.get_cdn_url() fails. It's hitting https://storage101.dfw1.clouddrive.com:443 when it should be doing a request to https://cdn1.clouddrive.com:443.
container.get_cdn_url()
File "/Users/ggreer/code/libcloud/libcloud/storage/base.py", line 123, in get_cdn_url
return self.driver.get_container_cdn_url(container=self)
File "/Users/ggreer/code/libcloud/libcloud/storage/drivers/cloudfiles.py", line 276, in get_container_cdn_url
cdn_url = response.headers['x-cdn-uri']
KeyError: 'x-cdn-uri'
The problem is that Connection::request() calls morph_action_hook, which calls _populate_hosts_and_request_paths(), which changes self.host. This happens after CloudFilesConnection::request calls _reset_connection_params().