Skip to content

Commit ce5f2fe

Browse files
committed
Merge pull request #4 from turingmachine/master
esxi_monitor.pl: check for datastructure to be non-empty before access, ...
2 parents 82db217 + 7262f67 commit ce5f2fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ZenPacks/community/VMwareESXiMonitor/libexec/esxi_monitor.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ sub get_info {
183183
my $values;
184184
$values = get_performance_values($views, $perfmgr_view, $group_type, ($counter.".".$rollup_type));
185185

186-
if (defined($values)) {
186+
if (defined($values) && exists $$values[0][0]->{value}) {
187187
my ( $t ) = split(/,/, $$values[0][0]->value);
188188
return $t;
189189
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# or saved. Do not modify them directly here.
44
# NB: PACKAGES is deprecated
55
NAME = "ZenPacks.community.VMwareESXiMonitor"
6-
VERSION = "2.0.1"
6+
VERSION = "2.0.3"
77
AUTHOR = "Eric Enns, Matthias Kittl"
88
LICENSE = ""
99
NAMESPACE_PACKAGES = ['ZenPacks', 'ZenPacks.community']

0 commit comments

Comments
 (0)