From d729bbbab1117e7638d7e7f278f076ef8205a517 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 29 Apr 2011 15:25:00 +0000 Subject: [PATCH] Correct parentheses balance in last feature git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9433 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index b403e58e0..124557698 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -604,7 +604,7 @@ sub build_xmldesc { $xtree{devices}->{disk}=build_diskstruct($cdloc); $xtree{devices}->{interface}=build_nicstruct($node); #use content to force xml simple to not make model the 'name' of video - if (defined ($confdata->{vm}->{$node}->[0]->{vidmodel}) { + if (defined ($confdata->{vm}->{$node}->[0]->{vidmodel})) { my $model = $confdata->{vm}->{$node}->[0]->{vidmodel}; my $vram = '8192'; $xtree{devices}->{video}= [ { 'content'=>'','model'=> {type=>$model,vram=>8192}}]; @@ -613,7 +613,7 @@ sub build_xmldesc { } $xtree{devices}->{input}->{type}='tablet'; $xtree{devices}->{input}->{bus}='usb'; - if (defined ($confdata->{vm}->{$node}->[0]->{vidproto}) { + if (defined ($confdata->{vm}->{$node}->[0]->{vidproto})) { $xtree{devices}->{graphics}->{type}=$confdata->{vm}->{$node}->[0]->{vidproto}; } else { $xtree{devices}->{graphics}->{type}='vnc';