summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorWilliam Wolf <throughnothing@gmail.com>2011-05-18 09:50:18 -0400
committerWilliam Wolf <throughnothing@gmail.com>2011-05-18 09:50:18 -0400
commit375fdc745fc5915098f11585ccd6a91e86747086 (patch)
tree2135be2177bbf9010e1a0cd4be8b055db15a6ab6 /nova/utils.py
parent6c151bfbfeb728d6e38f777640d483c1e344113d (diff)
get integrated server_tests passing
Diffstat (limited to 'nova/utils.py')
-rw-r--r--nova/utils.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/nova/utils.py b/nova/utils.py
index 3c8c82281..46dfc82e9 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -776,6 +776,7 @@ def get_image_service(image_ref):
return (get_default_image_service(), int(image_ref))
(image_id, host, port) = parse_image_ref(image_ref)
- glance_client = nova.image.glance.GlanceClient(host, port)
- image_service = nova.image.glance.GlanceImageService(glance_client)
+ glance_client = import_class('nova.image.glance.GlanceClient')(host,
+ port)
+ image_service = import_class(FLAGS.glance_image_service)(glance_client)
return (image_service, image_id)