From 3e9de10d4a197223d05450931027549407a1bc25 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 2 May 2011 15:06:16 +0000 Subject: [PATCH] Correct syntax error git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9456 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 ebf76cd53..f24248a31 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -1554,7 +1554,7 @@ sub chvm { $vmxml=$confdata->{kvmnodedata}->{$node}->[0]->{xml}; } my $domparsed = $parser->parse_string($vmxml); - my $candidatenodes=$domparsed->findnodes("//disk\@device='cdrom']"); + my $candidatenodes=$domparsed->findnodes("//disk[\@device='cdrom']"); if (scalar (@$candidatenodes) != 1) { die "shouldn't be possible, should only have one cdrom"; }