Correct previous attempt to conditionally populate scriptcontents. Moving the scope inside the conditional obliterated it from outside
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14914 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
05796434a8
commit
00710fc339
@ -81,11 +81,12 @@ sub process_request
|
||||
|
||||
require xCAT::Postage;
|
||||
my $args = $request->{arg};
|
||||
my @scriptcontents;
|
||||
if( defined($args) && grep(/version2/, @$args)) {
|
||||
my @scriptcontents = xCAT::Postage::makescript([$client],$state,$callback); # the new method, use the template
|
||||
@scriptcontents = xCAT::Postage::makescript([$client],$state,$callback); # the new method, use the template
|
||||
} else {
|
||||
#print "client:$client\n";
|
||||
my @scriptcontents = xCAT::Postage::makescript($client,$state,$callback); # the original method
|
||||
@scriptcontents = xCAT::Postage::makescript($client,$state,$callback); # the original method
|
||||
}
|
||||
if (scalar(@scriptcontents)) {
|
||||
$rsp->{data} = \@scriptcontents;
|
||||
|
Loading…
x
Reference in New Issue
Block a user