Skip to content

Commit

Permalink
Fixes #888 - Fixes cfinvalinfo broken in 2.0.0
Browse files Browse the repository at this point in the history
Fixes a regression introduced by the following commit:
becdfa6
  • Loading branch information
fviard committed Jun 28, 2017
1 parent 7abaeee commit ca4a19a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S3/CloudFront.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ca4a19a

Please sign in to comment.