[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] XendAPIStore - do not remove non-existent item
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1233748637 0 # Node ID 861ebefa7f396c43c02a47f0bb9977f88dbc9f1b # Parent c3b5e36248c94d43a1619201de114fd84135a20c XendAPIStore - do not remove non-existent item If list is searched and item not found, then don't attempt to delete the item. Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx> --- tools/python/xen/xend/XendAPIStore.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -r c3b5e36248c9 -r 861ebefa7f39 tools/python/xen/xend/XendAPIStore.py --- a/tools/python/xen/xend/XendAPIStore.py Tue Feb 03 18:14:19 2009 +0000 +++ b/tools/python/xen/xend/XendAPIStore.py Wed Feb 04 11:57:17 2009 +0000 @@ -33,7 +33,8 @@ def register(uuid, type, inst): def deregister(uuid, type): old = get(uuid, type) - del __classes[(uuid, type)] + if old is not None: + del __classes[(uuid, type)] return old def get(uuid, type): _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |