Skip to content

Commit

Permalink
fix VMware Fusion inventory on MacOSX
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonéri Le Bouder committed Oct 19, 2012
1 parent e29e38d commit 5c6fe35
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -10,7 +10,7 @@ use FusionInventory::Agent::Tools;

sub isEnabled {
return
canRun('/Library/Application\ Support/VMware\ Fusion/vmrun') ||
canRun('/Library/Application Support/VMware Fusion/vmrun') ||
canRun('vmrun');
}

Expand All @@ -21,7 +21,7 @@ sub doInventory {
my $logger = $params{logger};

my $command = canRun('vmrun') ?
'vmrun list' : '/Library/Application\ Support/VMware\ Fusion/vmrun list';
'vmrun list' : "'/Library/Application Support/VMware Fusion/vmrun' list";

foreach my $machine (_getMachines(
command => $command, logger => $logger
Expand Down

0 comments on commit 5c6fe35

Please sign in to comment.