Check for missing arguments on dsh and exit on error.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@371 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6e8c2b7191
commit
aa9dfdc285
@ -3706,6 +3706,13 @@ sub parse_and_run_dsh
|
||||
my @results = "return code = $rc";
|
||||
return (@results);
|
||||
}
|
||||
if (!(@ARGV))
|
||||
{ # no args , an error
|
||||
my %rsp;
|
||||
$rsp->{data}->[0] = "No command argument provided\n";
|
||||
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK);
|
||||
return;
|
||||
}
|
||||
|
||||
#
|
||||
# Execute the dsh api
|
||||
|
Loading…
Reference in New Issue
Block a user