Skip to content

Commit

Permalink
back to boto2
Browse files Browse the repository at this point in the history
  • Loading branch information
gharcombe-minson committed Jun 9, 2016
1 parent 4958156 commit a2e2238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import tempfile
import createrepo
import yum
import boto3
import boto
import os
import shutil
from rpmUtils.miscutils import splitFilename
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit a2e2238

Please sign in to comment.