def get_info(self, instance):
    'Retrieve information from libvirt for a specific instance name.\n\n        If a libvirt error is encountered during lookup, we might raise a\n        NotFound exception or Error exception depending on how severe the\n        libvirt error is.\n\n        '
    virt_dom = self._lookup_by_name(instance['name'])
    dom_info = virt_dom.info()
    return {'state': LIBVIRT_POWER_STATE[dom_info[0]], 'max_mem': dom_info[1], 'mem': dom_info[2], 'num_cpu': dom_info[3], 'cpu_time': dom_info[4], 'id': virt_dom.ID()}
Retrieve information from libvirt for a specific instance name.

If a libvirt error is encountered during lookup, we might raise a
NotFound exception or Error exception depending on how severe the
libvirt error is.
def get_info(self, instance):
    'Retrieve information from libvirt for a specific instance name.\n\n        If a libvirt error is encountered during lookup, we might raise a\n        NotFound exception or Error exception depending on how severe the\n        libvirt error is.\n\n        '
    virt_dom = self._lookup_by_name(instance['name'])
    dom_info = virt_dom.info()
    return {'state': LIBVIRT_POWER_STATE[dom_info[0]], 'max_mem': dom_info[1], 'mem': dom_info[2], 'num_cpu': dom_info[3], 'cpu_time': dom_info[4], 'id': virt_dom.ID()}