From c6f01481725a1bc497c2ae380cad93ebf83d0406 Mon Sep 17 00:00:00 2001 From: Guillaume Bougard Date: Fri, 29 Jun 2018 16:44:52 +0200 Subject: [PATCH] Closes #485 --- Changes | 1 + lib/FusionInventory/Agent/Task/Inventory/MacOS/Drives.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index b0a3853753..3b48a9951c 100644 --- a/Changes +++ b/Changes @@ -31,6 +31,7 @@ inventory: * Fix #439: Wrong network interface speed under win32 * Fix #472: On MacOS, add monitors serial number when available * Fix #479: No virtual machine memory under Proxmox +* Fix #485: Fix df output parsing under MacOS * Fix #500: Add Acer monitor EDID id match * Better SQL Server software inventory under win32 * Update Xen Server support diff --git a/lib/FusionInventory/Agent/Task/Inventory/MacOS/Drives.pm b/lib/FusionInventory/Agent/Task/Inventory/MacOS/Drives.pm index 098ae8506a..ef3c94d3c4 100644 --- a/lib/FusionInventory/Agent/Task/Inventory/MacOS/Drives.pm +++ b/lib/FusionInventory/Agent/Task/Inventory/MacOS/Drives.pm @@ -45,7 +45,7 @@ sub doInventory { my $filesystem = $filesystems{$device}; next unless $filesystem; - if ($info->{'Total Size'} =~ /^([.\d]+ \s \S+)/x) { + if ($info->{'Total Size'} && $info->{'Total Size'} =~ /^([.\d]+ \s \S+)/x) { $filesystem->{TOTAL} = getCanonicalSize($1); } $filesystem->{SERIAL} = $info->{'Volume UUID'} ||