Changed Amazon S3 download URL format so it works with S3_EU_WEST region.

Updated amazon config file path in the downloader class
This commit is contained in:
drigato 2014-11-07 11:51:11 -05:00
parent e24b4f43fd
commit 1dc72d5ebe
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ class CloudFile extends BaseCloudFile
$scheme = $endpoint->getScheme(); $scheme = $endpoint->getScheme();
$host = $endpoint->getHost(); $host = $endpoint->getHost();
$s3_bucket = $amazon_s3->getBucket(); $s3_bucket = $amazon_s3->getBucket();
return "$scheme://$host/$s3_bucket/".utf8_encode($resource_id); return "$scheme://$s3_bucket.$host/".utf8_encode($resource_id);
} }
/** /**

View file

@ -7,7 +7,7 @@ import hashlib
from libcloud.storage.types import Provider, ObjectDoesNotExistError from libcloud.storage.types import Provider, ObjectDoesNotExistError
from libcloud.storage.providers import get_driver from libcloud.storage.providers import get_driver
CONFIG_PATH = '/etc/airtime/airtime.conf' CONFIG_PATH = '/etc/airtime-saas/amazon.conf'
class CloudStorageDownloader: class CloudStorageDownloader:
""" A class that uses Apache Libcloud's Storage API to download objects from """ A class that uses Apache Libcloud's Storage API to download objects from