diff mbox

[KVM-AUTOTEST,01/26] error.py: clear context when setting base_context

Message ID 1294751618-21631-1-git-send-email-mgoldish@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Goldish Jan. 11, 2011, 1:13 p.m. UTC
None
diff mbox

Patch

diff --git a/client/common_lib/error.py b/client/common_lib/error.py
index c3479bb..76ccc77 100644
--- a/client/common_lib/error.py
+++ b/client/common_lib/error.py
@@ -94,6 +94,7 @@  def base_context(s="", log=None):
     @param log: A logging function to pass the context message to.  If None, no
             function will be called.
     """
+    ctx.contexts[-1] = ""
     ctx.contexts[-2] = s
     if s and log:
         log("Context: %s" % get_context())