diff options
| author | William Wolf <throughnothing@gmail.com> | 2011-05-18 10:41:33 -0400 |
|---|---|---|
| committer | William Wolf <throughnothing@gmail.com> | 2011-05-18 10:41:33 -0400 |
| commit | 96c888312fb7a2ba2cc9120282d29128a18342a8 (patch) | |
| tree | a907294bad11b7626b780a4f6661163cdbeb55d9 /nova/utils.py | |
| parent | 3c36abb43eea4ff7a740278085690aa057aba502 (diff) | |
fixed QuotaTestCases
Diffstat (limited to 'nova/utils.py')
| -rw-r--r-- | nova/utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/nova/utils.py b/nova/utils.py index dcaaab602..252f5e9a6 100644 --- a/nova/utils.py +++ b/nova/utils.py @@ -749,11 +749,9 @@ def parse_image_ref(image_ref): port = o.port host = o.netloc.split(':', 1)[0] image_id = o.path.split('/')[-1] + if is_int(image_id): image_id = int(image_id) - else: - raise exception.ImageNotFound( - _('image_ref [%s] is missing a proper id') % image_ref) return (image_id, host, port) |
