Skip to content

Commit

Permalink
Issue #2514: ConfigItemSearch for ES migration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven committed Sep 19, 2023
1 parent 608353a commit f7ce35d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -667,15 +667,16 @@ sub MigrateConfigItems {
# if currently no active classes are defined, return
return 1 if !@ActiveClasses;

my $ConfigItems = $ConfigItemObject->ConfigItemSearch(
my @ConfigItems = $ConfigItemObject->ConfigItemSearch(
ClassIDs => [@ActiveClasses],
Result => 'ARRAY',
);

my $Count = 0;
my $CICount = scalar @{$ConfigItems};
my $CICount = scalar @ConfigItems;

my $Errors = 0;
for my $ConfigItemID ( @{$ConfigItems} ) {
for my $ConfigItemID ( @ConfigItems ) {

$Count++;

Expand Down

0 comments on commit f7ce35d

Please sign in to comment.