From ca4a19adcb66f938e545a15d1c1a251cbf22a2a4 Mon Sep 17 00:00:00 2001 From: Florent Viard Date: Thu, 29 Jun 2017 00:57:16 +0200 Subject: [PATCH] Fixes #888 - Fixes cfinvalinfo broken in 2.0.0 Fixes a regression introduced by the following commit: https://github.com/s3tools/s3cmd/commit/becdfa666caddacc3756f2e9f95355d74b647dab --- S3/CloudFront.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/S3/CloudFront.py b/S3/CloudFront.py index 42ea4f2f6..e1ec668f5 100644 --- a/S3/CloudFront.py +++ b/S3/CloudFront.py @@ -577,9 +577,9 @@ def _fail_wait(self, retries): return (self._max_retries - retries + 1) * 3 def get_dist_name_for_bucket(self, uri): - if (uri.type == "cf"): - return uri - if (uri.type != "s3"): + if uri.type == "cf": + return [uri] + if uri.type != "s3": raise ParameterError("CloudFront or S3 URI required instead of: %s" % uri) debug("_get_dist_name_for_bucket(%r)" % uri)