... | ... |
@@ -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 |