summaryrefslogtreecommitdiff
path: root/glance_store/_drivers/s3.py
diff options
context:
space:
mode:
Diffstat (limited to 'glance_store/_drivers/s3.py')
-rw-r--r--glance_store/_drivers/s3.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/glance_store/_drivers/s3.py b/glance_store/_drivers/s3.py
index 2fcb550..a0b41ad 100644
--- a/glance_store/_drivers/s3.py
+++ b/glance_store/_drivers/s3.py
@@ -23,7 +23,6 @@ import re
import tempfile
import urlparse
-import boto.exception
import eventlet
from oslo_config import cfg
from oslo_utils import netutils
@@ -103,6 +102,8 @@ def run_upload(part):
Upload the upload part into S3 and set returned etag and size
to its part info.
"""
+ # We defer importing boto until now since it is an optional dependency.
+ import boto.exception
pnum = part.partnum
bsize = part.chunks
LOG.info(_LI("Uploading upload part in S3 partnum=%(pnum)d, "