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…
Reference in New Issue