hv_chroot: remove hard-coded path constructs
authorIustin Pop <iustin@google.com>
Fri, 5 Mar 2010 09:53:08 +0000 (10:53 +0100)
committerIustin Pop <iustin@google.com>
Mon, 8 Mar 2010 13:51:35 +0000 (14:51 +0100)
commit6b0391b3e3c9b086213ec88bc8c28c85f199ae6b
tree95ade80dc1a735544bf9ec2e52874cf8e27cbf99
parent6136f8f024129e31ddd067233e24cbd8638c2dbc
hv_chroot: remove hard-coded path constructs

This patch abstract the computation of an instance's root directory into
a separate function (that uses PathJoin instead of "%s/%s").

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/hypervisor/hv_chroot.py