From 7adbe1de867b31d9a1f86751d52e62dada63ccbb Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 7 Jan 2013 18:54:00 +0000 Subject: [PATCH] fix defect 2985 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14786 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/nodestat.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/nodestat.pm b/xCAT-server/lib/xcat/plugins/nodestat.pm index 257acb71a..de2d599b5 100644 --- a/xCAT-server/lib/xcat/plugins/nodestat.pm +++ b/xCAT-server/lib/xcat/plugins/nodestat.pm @@ -120,11 +120,8 @@ sub preprocess_request my $req = shift; my $cb = shift; my %sn; - - if ((defined($req->{_xcatpreprocessed})) && - ($req->{_xcatpreprocessed}->[0] == 1)) { - return [$req]; - } + if (defined $req->{_xcatpreprocessed}->[0] && $req->{_xcatpreprocessed}->[0] == 1) { return [$req]; } + #exit if preprocessed my $command = $req->{command}->[0]; if ($command eq "nodestat") {