Revision 12ee1ad8
b/snf-cyclades-gtools/synnefo/ganeti/eventd.py | ||
---|---|---|
244 | 244 |
"logmsg": logmsg, |
245 | 245 |
"jobId": job_id}) |
246 | 246 |
|
247 |
if op.status == "success": |
|
248 |
msg["result"] = op.result |
|
249 |
|
|
247 | 250 |
if op_id in ["OP_INSTANCE_CREATE", "OP_INSTANCE_SET_PARAMS", |
248 | 251 |
"OP_INSTANCE_STARTUP"]: |
249 | 252 |
if op.status == "success": |
... | ... | |
284 | 287 |
"instance": instances, |
285 | 288 |
"operation": op_id} |
286 | 289 |
|
290 |
if op_id == "OP_INSTANCE_SET_PARAMS": |
|
291 |
beparams = get_field(input, "beparams") |
|
292 |
if beparams: |
|
293 |
msg["beparams"] = beparams |
|
294 |
|
|
287 | 295 |
routekey = "ganeti.%s.event.op" % prefix_from_name(instances) |
288 | 296 |
|
289 | 297 |
return msg, routekey |
Also available in: Unified diff