2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-19 04:40:21 +00:00

correct typo and remove useless variable definition

This commit is contained in:
Xiaopeng Wang
2016-07-26 10:02:47 +08:00
parent 04019589d2
commit 2da47d9f4a
3 changed files with 3 additions and 4 deletions

View File

@ -838,7 +838,7 @@ sub submit_request {
#----- end added to Client.pm -----#
if (ref $_->{'_xcatdest'} and (ref $_->{'_xcatdest'}) eq 'ARRAY') {
_->{'_xcatdest'} = $_->{'_xcatdest'}->[0];
$_->{'_xcatdest'} = $_->{'_xcatdest'}->[0];
}
if ($onlyone and not($_->{'_xcatdest'} and xCAT::NetworkUtils->thishostisnot($_->{'_xcatdest'}))) {
$SIG{CHLD} = 'DEFAULT';

View File

@ -21,8 +21,7 @@ sub parse_args {
my $cmd = $request->{command};
my $args = $request->{arg};
my $node = $request->{node};
my $vers =
my @VERSION = qw( 2.6 );
my @VERSION = qw( 2.6 );
my @dev = qw(hfi net);
#############################################

View File

@ -2165,7 +2165,7 @@ sub dispatch_request {
my $child;
delete $_->{noderange};
if (ref $_->{'_xcatdest'} and (ref $_->{'_xcatdest'}) eq 'ARRAY') {
_->{'_xcatdest'} = $_->{'_xcatdest'}->[0];
$_->{'_xcatdest'} = $_->{'_xcatdest'}->[0];
}
if ($onlyone and not($_->{'_xcatdest'} and xCAT::NetworkUtils->thishostisnot($_->{'_xcatdest'}))) {
$SIG{CHLD} = 'DEFAULT';