git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4712c6d
)
imgae id always has 'ami' prefix regardless of container format
author
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Sun, 20 May 2012 19:08:20 +0000
(15:08 -0400)
committer
Tony Mack
<tmack@paris.CS.Princeton.EDU>
Sun, 20 May 2012 19:08:20 +0000
(15:08 -0400)
sfa/openstack/osaggregate.py
patch
|
blob
|
history
diff --git
a/sfa/openstack/osaggregate.py
b/sfa/openstack/osaggregate.py
index
23ca79a
..
3de5627
100644
(file)
--- 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