From fe6ca38becc4e01306faad207061c15058fa8990 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 --- library/cloud/s3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/cloud/s3 b/library/cloud/s3 index 6c465d837fb..cb524cc962d 100644 --- a/library/cloud/s3 +++ b/library/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)