diff options
author | Keir Fraser <keir@xensource.com> | 2007-09-26 17:11:07 +0100 |
---|---|---|
committer | Keir Fraser <keir@xensource.com> | 2007-09-26 17:11:07 +0100 |
commit | 884ec5f334cdd0fe27b6e0dc7da27aa18519fc02 (patch) | |
tree | c0dca3c48f10370b03bd6d71f98aa64d248b2579 /tools | |
parent | ce75f2335a22532c28313aa6a35be08def132f41 (diff) | |
download | xen-884ec5f334cdd0fe27b6e0dc7da27aa18519fc02.tar.gz xen-884ec5f334cdd0fe27b6e0dc7da27aa18519fc02.tar.bz2 xen-884ec5f334cdd0fe27b6e0dc7da27aa18519fc02.zip |
xend: Slightly finesse allocation of vmpath in xenstore.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/python/xen/xend/XendDomainInfo.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index 35149ed4eb..73ae50bffb 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -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 |