Skip to content

Commit f3492fe

Browse files
[FIX] Wrong field used for JMX port
1 parent b4e4e87 commit f3492fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/csv-host-importer/actions/CsvHostImport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ private function importHosts(): bool {
349349
'ip' => $host['JMX_IP'],
350350
'main' => 1,
351351
'useip' => $host['JMX_IP'] !== '' ? 1 : 0,
352-
'port' => $host['JMX_IP'] !== '' ? intval($host['JMX_IP']) : 12345,
352+
'port' => $host['JMX_PORT'] !== '' ? intval($host['JMX_PORT']) : 12345,
353353
];
354354
}
355355

0 commit comments

Comments
 (0)