Merge branch 'fix/fraguas' into 'develop'
minor fixes See merge request artica/pandorafms!2216 Former-commit-id: 856ba09c711fa9199e06518c42a05e4ae942b938
This commit is contained in:
commit
715bdbb04d
|
@ -216,7 +216,7 @@ sub new {
|
||||||
$self->{'snmp_security_level'} = '';
|
$self->{'snmp_security_level'} = '';
|
||||||
|
|
||||||
# Disable SNMP scans if no community was given.
|
# Disable SNMP scans if no community was given.
|
||||||
if (scalar(@{$self->{'communities'}}) == 0) {
|
if (ref($self->{'communities'}) ne "ARRAY" || scalar(@{$self->{'communities'}}) == 0) {
|
||||||
$self->{'snmp_enabled'} = 0;
|
$self->{'snmp_enabled'} = 0;
|
||||||
$self->call('message', "There is not any SNMP community configured.", 5);
|
$self->call('message', "There is not any SNMP community configured.", 5);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue