make sure internal plugin asciibetical load order is preserved
This commit is contained in:
@@ -49,7 +49,9 @@ sub load_workers {
|
||||
and exists vars->{'workers'}->{'internal'}->{$phase};
|
||||
my $internal = vars->{'workers'}->{'internal'};
|
||||
|
||||
foreach my $namespace (keys %{ $internal->{$phase} }) {
|
||||
# the namespace of an internal worker is actually the worker name so must
|
||||
# be sorted in order to "preserve" the plugin load order
|
||||
foreach my $namespace (sort keys %{ $internal->{$phase} }) {
|
||||
foreach my $priority (keys %{ $internal->{$phase}->{$namespace} }) {
|
||||
push @{ $workers->{$phase}->{'__internal__'}->{$priority} },
|
||||
@{ $internal->{$phase}->{$namespace}->{$priority} };
|
||||
|
||||
@@ -108,7 +108,7 @@ register 'register_worker' => sub {
|
||||
push @{ vars->{'workers'}->{$workerconf->{action}}
|
||||
->{$workerconf->{phase}}
|
||||
->{$workerconf->{namespace}}
|
||||
->{$workerconf->{priority}} }, $worker;
|
||||
->{$workerconf->{priority}} }, { conf => $workerconf, go => $worker };
|
||||
};
|
||||
|
||||
sub _find_matchaction {
|
||||
|
||||
Reference in New Issue
Block a user