Fix get agent status on unknown modules

This commit is contained in:
Calvo 2023-01-30 17:16:20 +01:00
parent 3f000f403a
commit 9305fd17ba
1 changed files with 9 additions and 2 deletions

View File

@ -618,8 +618,13 @@ sub get_agent_status ($$$) {
$module_status = 2;
}
elsif ($module_status != 2) {
if ($m_status == 0) {
$module_status = 0;
if ($m_status == 3) {
$module_status = 3;
}
elsif ($module_status != 3) {
if ($m_status == 3) {
$module_status = 3;
}
}
}
}
@ -647,6 +652,8 @@ sub get_agent_status ($$$) {
return 3;
}
}
print "MS ::::::::::::::".Dumper($module_status);
return $module_status;
}