fixed the defect 2979358

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5713 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2010-04-08 07:39:15 +00:00
parent 1b5cc19ab4
commit 270a784f1c

View File

@ -1293,9 +1293,10 @@ sub preprocess_request {
if ( ref($opt) eq 'ARRAY' )
{
send_msg( $req, 1, @$opt );
delete($req->{callback}); # if not, it will cause an error -- "Can't encode a value of type: CODE" in hierairchy.
return(1);
}
delete($req->{callback}); # remove 'callback' => sub { "DUMMY" } in hierairchy.
$req->{opt} = $opt;
if ( exists( $req->{opt}->{V} )) {
@ -1422,7 +1423,7 @@ sub parse_args
$req->{command} = $command;
$req->{stdin} = $stdin;
$req->{hwtype} = $package;
#$req->{callback} = $callback;
$req->{callback} = $callback;
$req->{method} = "parse_args";
my $opt = runcmd( $req);