diff options
| author | Hans Lindgren <hanlind@kth.se> | 2013-05-29 22:59:41 +0200 |
|---|---|---|
| committer | Hans Lindgren <hanlind@kth.se> | 2013-06-03 21:13:01 +0200 |
| commit | eb40b5ab13d11e773eb0c78084e9935fcd5a6552 (patch) | |
| tree | 2b3a07c032caa440f9a3c8d164342df0fc061ab7 /nova/tests | |
| parent | 783b0e836d9ba0630d4745a6457144fac6dfa9f0 (diff) | |
Stop libvirt errors from outputting to strerr
When a libvirt error happens, the default is to output to stderr. This
behavior can be omitted by registering a new error that simply passes
without doing anything.
Resolves bug 1182184.
Change-Id: If946f9d05388c93c0630d454e5ca3b6625bb14f9
Diffstat (limited to 'nova/tests')
| -rw-r--r-- | nova/tests/virt/libvirt/fakelibvirt.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/tests/virt/libvirt/fakelibvirt.py b/nova/tests/virt/libvirt/fakelibvirt.py index 30c3e4d9c..9594757a8 100644 --- a/nova/tests/virt/libvirt/fakelibvirt.py +++ b/nova/tests/virt/libvirt/fakelibvirt.py @@ -914,6 +914,10 @@ def virEventRegisterDefaultImpl(): pass +def registerErrorHandler(handler, ctxt): + pass + + virDomain = Domain |
