imgae id always has 'ami' prefix regardless of container format
authorTony Mack <tmack@paris.CS.Princeton.EDU>
Sun, 20 May 2012 19:08:20 +0000 (15:08 -0400)
committerTony Mack <tmack@paris.CS.Princeton.EDU>
Sun, 20 May 2012 19:08:20 +0000 (15:08 -0400)
sfa/openstack/osaggregate.py

index 23ca79a..3de5627 100644 (file)
@@ -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