mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
fix 0 values in jmx list attributes
This commit is contained in:
parent
2460d4c59c
commit
9baf47fca4
@ -292,7 +292,8 @@ sub list_attributes {
|
||||
$v =~ s/^\s*//;
|
||||
print " = " . $v;
|
||||
} else {
|
||||
if (my $scal = JMX::Jmx4Perl::Util->dump_scalar($val)) {
|
||||
my $scal = JMX::Jmx4Perl::Util->dump_scalar($val);
|
||||
if (defined($scal)) {
|
||||
print " = " . $scal . "\n";
|
||||
} else {
|
||||
print " = undef\n";
|
||||
@ -367,4 +368,4 @@ Credentials to use for the target
|
||||
|
||||
B<custom>.
|
||||
|
||||
=cut
|
||||
=cut
|
||||
|
Loading…
x
Reference in New Issue
Block a user