clear out any garbage left in ARGV before calling plugin

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9931 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mellor 2011-06-24 18:19:07 +00:00
parent fac000c8d9
commit 78b442171e

View File

@ -842,6 +842,7 @@ sub plugin_command {
use xCAT::NodeRange qw/extnoderange nodesmissed noderange/;
$Main::resps={};
my @nodes;
@ARGV = ();
if ($req->{node}) {
@nodes = @{$req->{node}};
} elsif ($req->{noderange} and $req->{noderange}->[0]) {