fix defect #3843 copycds complains Use of uninitialized value in numeric eq (==) at /opt/xcat/lib/perl/xCAT_plugin/esx.pm line 148.

This commit is contained in:
immarvin 2013-10-18 02:24:36 -07:00
parent 4fc4988238
commit 92b9ca4b9e

View File

@ -145,7 +145,7 @@ sub preprocess_request {
my $request = shift;
my $callback = shift;
#if already preprocessed, go straight to request
if ( (defined($request->{_xcatpreprocessed}))
if ( (defined($request->{_xcatpreprocessed}->[0]))
&& ($request->{_xcatpreprocessed}->[0] == 1))
{
return [$request];