Skip to content

Commit

Permalink
[FIX] Wrong field used for JMX port
Browse files Browse the repository at this point in the history
  • Loading branch information
intellitrend-team committed Oct 16, 2023
1 parent b4e4e87 commit f3492fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/csv-host-importer/actions/CsvHostImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ private function importHosts(): bool {
'ip' => $host['JMX_IP'],
'main' => 1,
'useip' => $host['JMX_IP'] !== '' ? 1 : 0,
'port' => $host['JMX_IP'] !== '' ? intval($host['JMX_IP']) : 12345,
'port' => $host['JMX_PORT'] !== '' ? intval($host['JMX_PORT']) : 12345,
];
}

Expand Down

0 comments on commit f3492fe

Please sign in to comment.