Foundations of Libvirt Development by W. David Ashley

Foundations of Libvirt Development by W. David Ashley

Author:W. David Ashley
Language: eng
Format: epub
ISBN: 9781484248621
Publisher: Apress


Using virGetLastError

The virGetLastError function can be used to obtain a Python list that contains all the information from the error reported from libvirt. This information is kept in thread-local storage, so separate threads can safely use this function concurrently. Note that it does not make a copy, so error information can be lost if the current thread calls this function subsequently. Listing 8-2 demonstrates the use of virGetLastError.# Example-24.py

from __future__ import print_function

import sys

import libvirt



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.