Added CLI support to policy linked modules (ticket ext.2673 int.3090)

This commit is contained in:
fbsanchez 2015-12-17 17:43:17 +01:00
parent e3a06f4ff9
commit 86433973f0

View File

@ -2476,6 +2476,11 @@ sub cli_module_update() {
my $update;
$update->{$field} = $new_value;
my $policy_id = enterprise_hook('get_id_policy_module_agent_module',[$dbh, safe_input($id_agent_module)]);
if ( $policy_id > 0) {
$update->{policy_linked} = 0;
}
pandora_update_module_from_hash ($conf, $update, 'id_agente_modulo', $id_agent_module, $dbh);
}