rpower cec onstandby -T tooltype support

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12217 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2012-04-12 08:11:00 +00:00
parent 3b615c77c2
commit 6d78e6aeb7

View File

@ -1904,7 +1904,7 @@ sub preprocess_request {
my @masters = xCAT::Utils->get_site_attribute("master");
#When run mkhwconn/lshwconn/rmhwconn with -T fnm for CNM, it will send the command to CEC/Frame direclty,
#not through the service node if specified.
if ((($req->{command}->[0] eq "mkhwconn") || ($req->{command}->[0] eq "lshwconn" ) || ($req->{command}->[0] eq "rmhwconn" ))
if ($req->{command}->[0] =~ /^(mkhwconn|lshwconn|rmhwconn|rpower)$/
&& ( $req->{opt}->{T} == 1) ) {
#for fnm
my $reqcopy = {%$req};