From e2ef171ed4963b5302ee9dd5b1538d896d0781bb Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Sun, 20 May 2012 15:08:20 -0400 Subject: [PATCH] imgae id always has 'ami' prefix regardless of container format --- sfa/openstack/osaggregate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sfa/openstack/osaggregate.py b/sfa/openstack/osaggregate.py index 23ca79a9..3de56271 100644 --- a/sfa/openstack/osaggregate.py +++ b/sfa/openstack/osaggregate.py @@ -52,7 +52,9 @@ def instance_to_sliver(instance, slice_xrn=None): def ec2_id(id=None, type=None): - ec2_id = None + ec2_id = None + if type == 'ovf': + type = 'ami' if id and type: ec2_id = CloudController.image_ec2_id(id, type) return ec2_id -- 2.47.0