From a2e22385fa447e6067d4145094a5d88bd1e901dd Mon Sep 17 00:00:00 2001 From: Gareth Harcombe-Minson Date: Thu, 9 Jun 2016 14:03:56 -0500 Subject: [PATCH] back to boto2 --- lambda_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lambda_handler.py b/lambda_handler.py index 3ccc74f..5310647 100644 --- a/lambda_handler.py +++ b/lambda_handler.py @@ -5,7 +5,7 @@ import tempfile import createrepo import yum -import boto3 +import boto import os import shutil from rpmUtils.miscutils import splitFilename @@ -36,7 +36,7 @@ def __init__(self, baseurl): base = urlparse.urlsplit(baseurl) self.baseurl = baseurl self.basepath = base.path.lstrip('/') - self.bucket = boto3.resource('s3').get_bucket(base.netloc) + self.bucket = boto.connect_s3().get_bucket(base.netloc) def _getkey(self, url): if url.startswith(self.baseurl):