Revision 90858bda snf-cyclades-gtools/synnefo/ganeti/eventd.py

b/snf-cyclades-gtools/synnefo/ganeti/eventd.py
247 247
            if op.status == "success":
248 248
                msg["result"] = op.result
249 249

  
250
            if op_id in ["OP_INSTANCE_CREATE", "OP_INSTANCE_SET_PARAMS",
251
                         "OP_INSTANCE_STARTUP"]:
252
                if op.status == "success":
250
            if ((op_id in ["OP_INSTANCE_CREATE", "OP_INSTANCE_STARTUP"] and
251
                 op.status == "success") or
252
                (op_id == "OP_INSTANCE_SET_PARAMS" and
253
                 op.status in ["success", "error", "cancelled"])):
253 254
                    nics = get_instance_nics(msg["instance"], self.logger)
254 255
                    msg["nics"] = nics
255 256

  

Also available in: Unified diff