summaryrefslogtreecommitdiffstats
path: root/nova/image
diff options
context:
space:
mode:
authorMark Washenberger <mark.washenberger@rackspace.com>2011-03-16 17:56:40 -0400
committerMark Washenberger <mark.washenberger@rackspace.com>2011-03-16 17:56:40 -0400
commitcc2d4728d32d016ef803d0def456cac6e315e8fa (patch)
tree730830be188aa486537c0100f9510dc5cafb18de /nova/image
parent3459cfb89bd90605e54fd1fb28b8b38089f3e236 (diff)
get started testing
Diffstat (limited to 'nova/image')
-rw-r--r--nova/image/glance.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nova/image/glance.py b/nova/image/glance.py
index 15fca69b8..3b448db4b 100644
--- a/nova/image/glance.py
+++ b/nova/image/glance.py
@@ -37,8 +37,10 @@ GlanceClient = utils.import_class('glance.client.Client')
class GlanceImageService(service.BaseImageService):
"""Provides storage and retrieval of disk image objects within Glance."""
- def __init__(self):
- self.client = GlanceClient(FLAGS.glance_host, FLAGS.glance_port)
+ def __init__(self, client=None):
+ if client is None:
+ self.client = GlanceClient(FLAGS.glance_host, FLAGS.glance_port)
+ self.client = client
def index(self, context):
"""