xend: Slightly finesse allocation of vmpath in xenstore.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
Keir Fraser committed 2007-09-26 17:11:07 +01:00
1 parent ce75f2335a
commit 884ec5f334
1 file changed
+3 -1
+3 -1
View File
@@ -355,7 +355,9 @@ class XendDomainInfo:
self.vmpath = vmpath
i = 0
while self.vmpath == None:
self.vmpath = XS_VMROOT + self.info['uuid'] + '/' + str(i)
self.vmpath = XS_VMROOT + self.info['uuid']
if i != 0:
self.vmpath = self.vmpath + '-' + str(i)
try:
if self._readVm("uuid"):
self.vmpath = None
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.