[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Added assertion, to stop it blowing up more obscurely a little later.



# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 5d9de9f4baf449b37b922ef343e0627366f98082
# Parent  43fbea30b5c8364d328d19ca2b453bed6cbd3d94
Added assertion, to stop it blowing up more obscurely a little later.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 43fbea30b5c8 -r 5d9de9f4baf4 
tools/python/xen/xend/xenstore/xstransact.py
--- a/tools/python/xen/xend/xenstore/xstransact.py      Mon Nov  7 11:30:16 2005
+++ b/tools/python/xen/xend/xenstore/xstransact.py      Mon Nov  7 11:30:35 2005
@@ -11,6 +11,8 @@
 class xstransact:
 
     def __init__(self, path):
+        assert path is not None
+        
         self.in_transaction = False # Set this temporarily -- if this
                                     # constructor fails, then we need to
                                     # protect __del__.

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.