mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed error in cli
(cherry picked from commit aebf32bbd1768e1c5d73cc0c7e41a233636add68)
This commit is contained in:
parent
7650674043
commit
f85253c5b7
@ -1239,10 +1239,12 @@ sub cli_create_data_module($) {
|
||||
}
|
||||
|
||||
if ($in_policy == 0) {
|
||||
my $module_exists = get_agent_module_id($dbh, $module_name_def, $agent_id);
|
||||
non_exist_check($module_exists, 'module name', $module_name_def);
|
||||
print_log "[INFO] Adding module '$module_name' to agent '$agent_name'\n\n";
|
||||
}
|
||||
else {
|
||||
my $policy_module_exist = enterprise_hook('get_policy_module_id',[$dbh, $policy_id, $module_name_def]);
|
||||
non_exist_check($policy_module_exist,'policy module',$module_name_def);
|
||||
print_log "[INFO] Adding module '$module_name' to policy '$policy_name'\n\n";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user