-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:
parent
9935eed1f0
commit
478cd92c19
@ -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,$_];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user