-Fix default variable value mixup

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7239 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2010-08-25 18:13:20 +00:00
parent 9935eed1f0
commit 478cd92c19

View File

@ -509,16 +509,16 @@ sub scan_plugins {
my $value = $_;
my @modulehandlerinfos;
if (ref $cmd_adds->{$_}) {
@modulehandlerinfos=@{$cmd_adds->{$_}};
@modulehandlerinfos=@{$cmd_adds->{$value}};
} else {
@modulehandlerinfos=($cmd_adds->{$_});
@modulehandlerinfos=($cmd_adds->{$value});
}
unless (defined($cmd_handlers{$_})) {
$cmd_handlers{$_} = [ ];
unless (defined($cmd_handlers{$value})) {
$cmd_handlers{$value} = [ ];
}
# Add every plugin registration to cmd_handlers
foreach (@modulehandlerinfos) {
push @{$cmd_handlers{$_}},[$modname,$_];
push @{$cmd_handlers{$value}},[$modname,$_];
}
}
}