Fixed pandora_manage.pl that --create_event allows empty group_name, agent_name and module_name options.
This commit is contained in:
parent
af340897d0
commit
66c07a4e50
|
@ -2748,7 +2748,7 @@ sub cli_create_event() {
|
|||
|
||||
my $id_group;
|
||||
|
||||
if (!defined($group_name) || $group_name eq "All") {
|
||||
if (! $group_name || $group_name eq "All") {
|
||||
$id_group = 0;
|
||||
}
|
||||
else {
|
||||
|
@ -2758,7 +2758,7 @@ sub cli_create_event() {
|
|||
|
||||
my $id_agent;
|
||||
|
||||
if (!defined($agent_name)) {
|
||||
if (! $agent_name) {
|
||||
$id_agent = 0;
|
||||
}
|
||||
else {
|
||||
|
@ -2768,7 +2768,7 @@ sub cli_create_event() {
|
|||
|
||||
my $id_agentmodule;
|
||||
|
||||
if (!defined($module_name)) {
|
||||
if (! $module_name) {
|
||||
$id_agentmodule = 0;
|
||||
}
|
||||
else {
|
||||
|
@ -4427,7 +4427,7 @@ sub pandora_manage_main ($$$) {
|
|||
cli_delete_profile();
|
||||
}
|
||||
elsif ($param eq '--create_event') {
|
||||
param_check($ltotal, 14, 10);
|
||||
param_check($ltotal, 14, 11);
|
||||
cli_create_event();
|
||||
}
|
||||
elsif ($param eq '--validate_event') {
|
||||
|
|
Loading…
Reference in New Issue