Revision 0827883e snf-cyclades-app/synnefo/logic/callbacks.py
b/snf-cyclades-app/synnefo/logic/callbacks.py | ||
---|---|---|
204 | 204 |
"""Process a create progress message""" |
205 | 205 |
log.debug("Processing ganeti-create-progress msg: %s", msg) |
206 | 206 |
|
207 |
if msg['type'] != "ganeti-create-progress": |
|
207 |
if msg['type'] not in ('image-copy-progress', 'image-error', |
|
208 |
'image-helper'): |
|
208 | 209 |
log.error("Message is of unknown type %s", msg['type']) |
209 | 210 |
return |
210 | 211 |
|
211 |
backend.process_create_progress(vm, event_time, msg['rprogress'], None) |
|
212 |
if msg['type'] == 'image-copy-progress': |
|
213 |
backend.process_create_progress(vm, event_time, msg['progress']) |
|
212 | 214 |
|
213 | 215 |
log.debug("Done processing ganeti-create-progress msg for vm %s.", |
214 | 216 |
msg['instance']) |
Also available in: Unified diff