minor fix

Former-commit-id: a012c8155cd1d950044bc2c0531ee2abd9e89d07
This commit is contained in:
fbsanchez 2019-04-04 16:07:50 +02:00
parent 56f2acbbf1
commit 1274380270
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ sub PandoraFMS::Recon::Base::create_agents($$) {
my $agent_id;
my $os_id = get_os_id($dbh, $agent->{'os'});
if (!$os_id) {
if ($os_id < 0) {
$os_id = get_os_id($dbh, 'Other');
}