diff --git a/modules/csv-host-importer/actions/CsvHostImport.php b/modules/csv-host-importer/actions/CsvHostImport.php index 00ef4f2..6ef13da 100644 --- a/modules/csv-host-importer/actions/CsvHostImport.php +++ b/modules/csv-host-importer/actions/CsvHostImport.php @@ -223,7 +223,7 @@ private function importHosts(): bool { $hostgroup = trim($hostgroup); $zbxhostgroup = API::HostGroup()->get([ 'output' => ['id'], - 'search' => ['name' => $hostgroup], + 'filter' => ['name' => $hostgroup], 'limit' => 1 ]); @@ -250,7 +250,7 @@ private function importHosts(): bool { $zbxtemplate = API::Template()->get([ 'output' => ['id'], - 'search' => ['name' => $template], + 'filter' => ['name' => $template], 'limit' => 1 ]);