From 8c14e5967d354682ba1b76ff95fe2edc86df945a Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 22 Jun 2011 17:44:07 +0000 Subject: [PATCH] Skip expensive table lookup for trivial lsvm case git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9898 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 2f34c3d49..9a13f736c 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -2468,7 +2468,7 @@ sub process_request { if ($::XCATSITEVALS{usexhrm}) { $use_xhrm=1; } $vmtab = xCAT::Table->new("vm"); $confdata={}; - xCAT::VMCommon::grab_table_data($noderange,$confdata,$callback); + unless ($command eq 'lsvm') { xCAT::VMCommon::grab_table_data($noderange,$confdata,$callback); } $kvmdatatab = xCAT::Table->new("kvm_nodedata",-create=>0); #grab any pertinent pre-existing xml if ($kvmdatatab) { $confdata->{kvmnodedata} = $kvmdatatab->getNodesAttribs($noderange,[qw/xml/]);