From 241d47f88d22775d8ad174e51ada7b1c00bd2d18 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sat, 28 Aug 2010 01:46:50 +0000 Subject: [PATCH] Change to make the first passing test of clonevm -t git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7293 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 9d7cdf851..78c25331d 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -1495,7 +1495,7 @@ sub clonevm { return; } $volclonemap{$filename}=[$sourcevol,$volname]; - $filename =~ s/^$node/$mastername/; + $filename =~ s/(.*\/)$node\./$1$mastername\./; $_->setAttribute(file=>$filename); } foreach (keys %volclonemap) {