From bc25b8b2392e3fab01cc045b35a013417dfca582 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Thu, 2 Aug 2012 06:54:34 +0000 Subject: [PATCH] fix bug about 'hwtype' string changing into a string array in hierarchical environment. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13397 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/PPC.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index 2c5541b6d..e82ea225e 100644 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -2148,8 +2148,10 @@ sub process_request { } $request->{opt} = \%t; } - -# $request->{hwtype} = $package; + if (ref($req->{hwtype}) eq 'ARRAY') { + $request->{hwtype} = $req->{hwtype}->[0]; + } +# $request->{hwtype} = $package; $request->{callback}= $callback; $request->{subreq} = $subreq; #########################