Permalink
Browse files

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

  requests.



git-svn-id: https://s3tools.svn.sourceforge.net/svnroot/s3tools/s3cmd/trunk@477 830e0280-6d2a-0410-9c65-932aecc39d9d
  • Loading branch information...
1 parent d065ce3 commit 16f6c3e9b3d373284533358318424b3096e87740 @mludvig mludvig committed Apr 11, 2011
Showing with 10 additions and 2 deletions.
  1. +5 −0 ChangeLog
  2. +5 −2 S3/CloudFront.py
View
@@ -1,5 +1,10 @@
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>
+
* S3/PkgInfo.py: Updated to 1.1.0-beta1
* NEWS: Updated.
* s3cmd.1: Regenerated.
View
@@ -721,8 +721,11 @@ def invalinfo(args):
requests.append(str(cfuri))
else:
inval_list = cf.GetInvalList(cfuri)
- for i in inval_list['inval_list'].info['InvalidationSummary']:
- requests.append("/".join(["cf:/", cfuri.dist_id(), i["Id"]]))
+ try:
+ for i in inval_list['inval_list'].info['InvalidationSummary']:
+ requests.append("/".join(["cf:/", cfuri.dist_id(), i["Id"]]))
+ except:
+ continue
for req in requests:
cfuri = S3Uri(req)
inval_info = cf.GetInvalInfo(cfuri)

0 comments on commit 16f6c3e

Please sign in to comment.