Skip to content

Commit

Permalink
* S3/CloudFront.py: Don't fail if there are no cfinval
Browse files Browse the repository at this point in the history
  requests.



git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@477 830e0280-6d2a-0410-9c65-932aecc39d9d
  • Loading branch information
mludvig committed Apr 11, 2011
1 parent d065ce3 commit 16f6c3e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,8 @@
2011-04-11 Michal Ludvig <mludvig@logix.net.nz>

* S3/CloudFront.py: Don't fail if there are no cfinval
requests.

2011-04-11 Michal Ludvig <mludvig@logix.net.nz> 2011-04-11 Michal Ludvig <mludvig@logix.net.nz>


* S3/PkgInfo.py: Updated to 1.1.0-beta1 * S3/PkgInfo.py: Updated to 1.1.0-beta1
Expand Down
7 changes: 5 additions & 2 deletions S3/CloudFront.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -721,8 +721,11 @@ def invalinfo(args):
requests.append(str(cfuri)) requests.append(str(cfuri))
else: else:
inval_list = cf.GetInvalList(cfuri) inval_list = cf.GetInvalList(cfuri)
for i in inval_list['inval_list'].info['InvalidationSummary']: try:
requests.append("/".join(["cf:/", cfuri.dist_id(), i["Id"]])) for i in inval_list['inval_list'].info['InvalidationSummary']:
requests.append("/".join(["cf:/", cfuri.dist_id(), i["Id"]]))
except:
continue
for req in requests: for req in requests:
cfuri = S3Uri(req) cfuri = S3Uri(req)
inval_info = cf.GetInvalInfo(cfuri) inval_info = cf.GetInvalInfo(cfuri)
Expand Down

0 comments on commit 16f6c3e

Please sign in to comment.