...
|
...
|
@@ -567,7 +567,7 @@ class CloudFront(object):
|
567
|
567
|
if (uri.type == "cf"):
|
568
|
568
|
return uri
|
569
|
569
|
if (uri.type != "s3"):
|
570
|
|
- raise ParameterError("CloudFront or S3 URI required instead of: %s" % arg)
|
|
570
|
+ raise ParameterError("CloudFront or S3 URI required instead of: %s" % uri)
|
571
|
571
|
|
572
|
572
|
debug("_get_dist_name_for_bucket(%r)" % uri)
|
573
|
573
|
if CloudFront.dist_list is None:
|
...
|
...
|
@@ -592,7 +592,7 @@ class CloudFront(object):
|
592
|
592
|
return CloudFront.dist_list[uri.bucket()]
|
593
|
593
|
except Exception, e:
|
594
|
594
|
debug(e)
|
595
|
|
- raise ParameterError("Unable to translate S3 URI to CloudFront distribution name: %s" % arg)
|
|
595
|
+ raise ParameterError("Unable to translate S3 URI to CloudFront distribution name: %s" % uri)
|
596
|
596
|
|
597
|
597
|
class Cmd(object):
|
598
|
598
|
"""
|
...
|
...
|
@@ -675,7 +675,7 @@ class Cmd(object):
|
675
|
675
|
for arg in args:
|
676
|
676
|
uri = S3Uri(arg)
|
677
|
677
|
if uri.type != "s3":
|
678
|
|
- raise ParameterError("Bucket can only be created from a s3:// URI instead of: %s" % arg)
|
|
678
|
+ raise ParameterError("Distribution can only be created from a s3:// URI instead of: %s" % arg)
|
679
|
679
|
if uri.object():
|
680
|
680
|
raise ParameterError("Use s3:// URI with a bucket name only instead of: %s" % arg)
|
681
|
681
|
if not uri.is_dns_compatible():
|