Browse code

Minor bugfix to --upload-id check

Eugene Brevdo authored on 2013/07/16 06:40:16
Showing 1 changed files
... ...
@@ -2005,7 +2005,7 @@ def main():
2005 2005
         cfg.upload_id = options.upload_id
2006 2006
         cfg.put_continue = True
2007 2007
 
2008
-    if cfg.put_continue and not cfg.multipart_chunk_size_mb:
2008
+    if cfg.upload_id and not cfg.multipart_chunk_size_mb:
2009 2009
         raise ParameterError("Must have --multipart-chunk-size-mb if using --put-continue or --upload-id")
2010 2010
 
2011 2011
     ## CloudFront's cf_enable and Config's enable share the same --enable switch