Skip to content

Commit

Permalink
[CHG] Select exact host group or template name
Browse files Browse the repository at this point in the history
  • Loading branch information
intellitrend-team committed May 17, 2022
1 parent 18d3f5a commit 155a372
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/csv-host-importer/actions/CsvHostImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
]);

Expand All @@ -250,7 +250,7 @@ private function importHosts(): bool {

$zbxtemplate = API::Template()->get([
'output' => ['id'],
'search' => ['name' => $template],
'filter' => ['name' => $template],
'limit' => 1
]);

Expand Down

0 comments on commit 155a372

Please sign in to comment.