fix 0 values in jmx list attributes

This commit is contained in:
qgarnier 2017-09-12 14:05:12 +02:00
parent 2460d4c59c
commit 9baf47fca4
1 changed files with 3 additions and 2 deletions

View File

@ -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";