Skip to content

Commit

Permalink
esxi_monitor.pl: use more thorough check if data is acutally available
Browse files Browse the repository at this point in the history
  • Loading branch information
turingmachine committed Jan 29, 2015
1 parent ee515de commit 7262f67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ sub get_info {
my $values;
$values = get_performance_values($views, $perfmgr_view, $group_type, ($counter.".".$rollup_type));

if (defined($values) && scalar @$values) {
if (defined($values) && exists $$values[0][0]->{value}) {
my ( $t ) = split(/,/, $$values[0][0]->value);
return $t;
}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# or saved. Do not modify them directly here.
# NB: PACKAGES is deprecated
NAME = "ZenPacks.community.VMwareESXiMonitor"
VERSION = "2.0.2"
VERSION = "2.0.3"
AUTHOR = "Eric Enns, Matthias Kittl"
LICENSE = ""
NAMESPACE_PACKAGES = ['ZenPacks', 'ZenPacks.community']
Expand Down

0 comments on commit 7262f67

Please sign in to comment.