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

Merge pull request #1587 from daniceexi/master

correct typo and remove useless variable definition
This commit is contained in:
chenglch
2016-07-26 10:25:59 +08:00
committed by GitHub
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';