[libvirt] [python PATCH] Blacklist virGetLastError{Code,Domain}

Daniel P. Berrangé berrange at redhat.com
Wed Jun 6 15:50:29 UTC 2018


These methods will not be exposed to apps, since we auto raise
all errors.

Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
---
 sanitytest.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Pushed as a trivial build fix

diff --git a/sanitytest.py b/sanitytest.py
index 190d32b..d5c23dc 100644
--- a/sanitytest.py
+++ b/sanitytest.py
@@ -234,7 +234,9 @@ for name in sorted(basicklassmap):
                     "ErrorFunc", "FreeError",
                     "SaveLastError", "ResetError"]:
             continue
-        elif func in ["GetLastError", "GetLastErrorMessage", "ResetLastError", "Initialize"]:
+        elif func in ["GetLastError", "GetLastErrorMessage",
+                      "GetLastErrorCode", "GetLastErrorDomain",
+                      "ResetLastError", "Initialize"]:
             func = "vir" + func
         elif func == "SetErrorFunc":
             func = "RegisterErrorHandler"
-- 
2.17.0




More information about the libvir-list mailing list