Revision 691d8725 lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
456 456
  _RETURN_KEY = RETURN_KEY = "return"
457 457
  _ACTUAL_KEY = ACTUAL_KEY = "actual"
458 458
  _ERROR_CLASS_KEY = "class"
459
  _ERROR_DATA_KEY = "data"
460 459
  _ERROR_DESC_KEY = "desc"
461 460
  _EXECUTE_KEY = "execute"
462 461
  _ARGUMENTS_KEY = "arguments"
......
600 599
      err = response[self._ERROR_KEY]
601 600
      if err:
602 601
        raise errors.HypervisorError("kvm: error executing the %s"
603
                                     " command: %s (%s, %s):" %
602
                                     " command: %s (%s):" %
604 603
                                     (command,
605 604
                                      err[self._ERROR_DESC_KEY],
606
                                      err[self._ERROR_CLASS_KEY],
607
                                      err[self._ERROR_DATA_KEY]))
605
                                      err[self._ERROR_CLASS_KEY]))
608 606

  
609 607
      elif not response[self._EVENT_KEY]:
610 608
        return response

Also available in: Unified diff