diff --git a/perl/getHostHardwareHealthInfo.pl b/perl/getHostHardwareHealthInfo.pl index 1f80c1e..062b27d 100755 --- a/perl/getHostHardwareHealthInfo.pl +++ b/perl/getHostHardwareHealthInfo.pl @@ -85,7 +85,7 @@ sub checkHosts { &startReportCreation(); my $host_views = Vim::find_entity_views(view_type => 'HostSystem'); foreach(@$host_views) { - &getHardwareHealthInfo($host_view); + &getHardwareHealthInfo($_); } } } else {