Fix defect 2832027 rmconn having an issue with PPCconn.pm trying to execute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3936 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
81e6176b6f
commit
8a7d38d30f
@ -49,7 +49,7 @@ sub mkconn_parse_args
|
||||
return(usage( "No command specified" ));
|
||||
}
|
||||
|
||||
local @ARGV = @$args;
|
||||
local @ARGV = ref($args) eq 'ARRAY'? @$args:();
|
||||
$Getopt::Long::ignorecase = 0;
|
||||
Getopt::Long::Configure( "bundling" );
|
||||
|
||||
@ -257,7 +257,7 @@ sub rmconn_parse_args
|
||||
#############################################
|
||||
# Get options in command line
|
||||
#############################################
|
||||
local @ARGV = @$args;
|
||||
local @ARGV = ref($args) eq 'ARRAY'? @$args:();
|
||||
$Getopt::Long::ignorecase = 0;
|
||||
Getopt::Long::Configure( "bundling" );
|
||||
|
||||
@ -268,7 +268,7 @@ sub rmconn_parse_args
|
||||
#############################################
|
||||
# Process command-line arguments
|
||||
#############################################
|
||||
if ( scalar @$args) {
|
||||
if ( $args && scalar @$args) {
|
||||
return(usage( "No additional flag is support by this command" ));
|
||||
}
|
||||
##########################################
|
||||
|
Loading…
Reference in New Issue
Block a user