Permalink
Browse files

fixes: 's3cmd info' doesn't use base_host in output.

  • Loading branch information...
1 parent 8928efe commit b884a133345b37262b0df9aa077b59e845399f47 @ksauzz ksauzz committed with Nov 9, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 S3/S3Uri.py
View
@@ -10,6 +10,7 @@
from logging import debug
import S3
from Utils import unicodise, check_bucket_name_dns_conformity
+import Config
class S3Uri(object):
type = None
@@ -80,9 +81,9 @@ def is_dns_compatible(self):
def public_url(self):
if self.is_dns_compatible():
- return "http://%s.s3.amazonaws.com/%s" % (self._bucket, self._object)
+ return "http://%s.%s/%s" % (self._bucket, Config.Config().host_base, self._object)
else:
- return "http://s3.amazonaws.com/%s/%s" % (self._bucket, self._object)
+ return "http://%s/%s/%s" % (self._bucket, Config.Config().host_base, self._object)
def host_name(self):
if self.is_dns_compatible():

0 comments on commit b884a13

Please sign in to comment.