2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-17 03:40:39 +00:00

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:38:17 -07:00
parent 92b9ca4b9e
commit 72de3aedfb

View File

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