support getmacs cb4lpar01 -D -f in hierachy env

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5963 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2010-05-05 02:37:09 +00:00
parent eaf4771f2f
commit c4128bec5a

View File

@ -1459,6 +1459,16 @@ sub process_request {
$request->{stdin} = $req->{stdin}->[0];
$request->{method} = $req->{method}->[0];
$request->{op} = $req->{op}->[0];
#support more options in hierachy
if( ref( $req->{opt}) eq 'ARRAY' ) {
my $h = $req->{opt}->[0];
my %t = ();
foreach my $k(keys %$h){
$t{$k} = $h->{$k}->[0];
}
$request->{opt} = \%t;
}
# $request->{hwtype} = $package;
$request->{callback}= $callback;
$request->{subreq} = $subreq;