Remove pretty random cleanup code in _add_domain.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
This commit is contained in:
cl349@firebug.cl.cam.ac.uk committed 2005-09-16 20:02:18 +00:00
1 parent 9a96bf893d
commit 1bc5147c84
1 file changed
-5
-5
View File
@@ -177,11 +177,6 @@ class XendDomain:
@param info: domain info object
@param notify: send a domain created event if true
"""
# Remove entries under the wrong id.
for i, d in self.domains.items():
if i != d.domid:
del self.domains[i]
self.dbmap.delete(d.uuid)
if info.domid in self.domains:
notify = False
self.domains[info.domid] = info
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.