summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wolf <throughnothing@gmail.com>2011-05-18 10:16:51 -0400
committerWilliam Wolf <throughnothing@gmail.com>2011-05-18 10:16:51 -0400
commit3c36abb43eea4ff7a740278085690aa057aba502 (patch)
treeb5dd1baa66ff1539152f26e06a817a0c0c682e6a
parenta9738fe5196cc1ed0715c3d96c692e782e77fec6 (diff)
fixed ComputeTestCase tests
-rw-r--r--nova/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/nova/utils.py b/nova/utils.py
index 04acfc417..dcaaab602 100644
--- a/nova/utils.py
+++ b/nova/utils.py
@@ -773,6 +773,7 @@ def get_image_service(image_ref):
:returns: a tuple of the form (image_service, image_id)
"""
+ image_ref = image_ref or 0
if is_int(image_ref):
return (get_default_image_service(), int(image_ref))