mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-23 13:55:43 +02:00
Discovery: Minor update in description and extra information in log
Former-commit-id: b24c095a8c75d190ba03ea089a9d680fcccd5b2b
This commit is contained in:
parent
19ec5a0733
commit
f06e81dcc4
@ -505,9 +505,14 @@ class DiscoveryTaskList extends Wizard
|
|||||||
true,
|
true,
|
||||||
['title' => __('Discovery NetScan')]
|
['title' => __('Discovery NetScan')]
|
||||||
).' ';
|
).' ';
|
||||||
$data[6] .= network_profiles_get_name(
|
$str = network_profiles_get_name(
|
||||||
$task['id_network_profile']
|
$task['id_network_profile']
|
||||||
);
|
);
|
||||||
|
if (!empty($str)) {
|
||||||
|
$data[6] .= $str;
|
||||||
|
} else {
|
||||||
|
$data[6] .= __('Discovery.NetScan');
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -276,6 +276,11 @@ sub data_consumer ($$) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
|
logger(
|
||||||
|
$pa_config,
|
||||||
|
'Cannot execute Discovery task: ' . safe_output($task->{'name'}) . $@,
|
||||||
|
10
|
||||||
|
);
|
||||||
update_recon_task ($dbh, $task_id, -1);
|
update_recon_task ($dbh, $task_id, -1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user