From f1638c5eea2c2e15ade968fd0bd0d445d01b730a Mon Sep 17 00:00:00 2001 From: Shahar Kedar Date: Fri, 31 May 2013 16:37:37 +0300 Subject: [PATCH] Issue #3079: Initializing key_exists in case the S3 bucket does not exist --- cloud/s3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloud/s3 b/cloud/s3 index 6c465d837fb..cb524cc962d 100644 --- a/cloud/s3 +++ b/cloud/s3 @@ -173,7 +173,8 @@ def main(): else: key_name = dest - # Check to see if the key already exists + # Check to see if the key already exists + key_exists = False if bucket_exists is True: try: key_check = bucket.get_key(key_name)