git://git.onelab.eu
/
plstackapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove raise
[plstackapi.git]
/
planetstack
/
observer
/
steps
/
sync_image_deployments.py
diff --git
a/planetstack/observer/steps/sync_image_deployments.py
b/planetstack/observer/steps/sync_image_deployments.py
index
a52b9ca
..
31556c3
100644
(file)
--- a/
planetstack/observer/steps/sync_image_deployments.py
+++ b/
planetstack/observer/steps/sync_image_deployments.py
@@
-46,8
+46,5
@@
class SyncImageDeployments(OpenStackSyncStep):
disk_format='raw',
container_format='bare')
glance_image.update(data=open(image_deployment.image.path, 'rb'))
disk_format='raw',
container_format='bare')
glance_image.update(data=open(image_deployment.image.path, 'rb'))
-
- if not glance_image or not glance_image.get('id'):
- raise Exception, "Add image failed at deployment %s" % image_deployment.deployment.name
- image_deployment.glance_image_id = glance_image['id']
+ image_deployment.glance_image_id = glance_image.id
image_deployment.save()
image_deployment.save()