mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
#8517 Fixed module name
This commit is contained in:
parent
8dd959c306
commit
15d92d5cd6
@ -1628,9 +1628,14 @@ sub database_scan($$$) {
|
|||||||
$self->{'summary'}->{'discovered'} += 1;
|
$self->{'summary'}->{'discovered'} += 1;
|
||||||
$self->{'summary'}->{'alive'} += 1;
|
$self->{'summary'}->{'alive'} += 1;
|
||||||
|
|
||||||
|
my $name = $type . ' connection';
|
||||||
|
if (defined $obj->{'prefix_module_name'} && $obj->{'prefix_module_name'} ne '') {
|
||||||
|
$name = $obj->{'prefix_module_name'} . $type . ' connection';
|
||||||
|
}
|
||||||
|
|
||||||
push @modules,
|
push @modules,
|
||||||
{
|
{
|
||||||
name => $type . ' connection',
|
name => $name,
|
||||||
type => 'generic_proc',
|
type => 'generic_proc',
|
||||||
data => 1,
|
data => 1,
|
||||||
description => $type . ' availability'
|
description => $type . ' availability'
|
||||||
@ -1778,8 +1783,14 @@ sub app_scan($) {
|
|||||||
# Update progress
|
# Update progress
|
||||||
$self->call('update_progress', $global_percent + (90 / (scalar @targets)));
|
$self->call('update_progress', $global_percent + (90 / (scalar @targets)));
|
||||||
$self->{'summary'}->{'not_alive'} += 1;
|
$self->{'summary'}->{'not_alive'} += 1;
|
||||||
|
|
||||||
|
my $name = $type . ' connection';
|
||||||
|
if (defined $obj->{'prefix_module_name'} && $obj->{'prefix_module_name'} ne '') {
|
||||||
|
$name = $obj->{'prefix_module_name'} . $type . ' connection';
|
||||||
|
}
|
||||||
|
|
||||||
push @modules, {
|
push @modules, {
|
||||||
name => $type . ' connection',
|
name => $name,
|
||||||
type => 'generic_proc',
|
type => 'generic_proc',
|
||||||
data => 0,
|
data => 0,
|
||||||
description => $type . ' availability'
|
description => $type . ' availability'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user