From 1516889da48029f5653035f8d1005a7147970524 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 9 Sep 2019 17:37:48 +0200 Subject: [PATCH] revert --- centreon/common/powershell/hyperv/2012/nodesnapshot.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon/common/powershell/hyperv/2012/nodesnapshot.pm b/centreon/common/powershell/hyperv/2012/nodesnapshot.pm index 1df81686f..3f9b69c9d 100644 --- a/centreon/common/powershell/hyperv/2012/nodesnapshot.pm +++ b/centreon/common/powershell/hyperv/2012/nodesnapshot.pm @@ -39,9 +39,9 @@ Try { $ErrorActionPreference = "Stop" $vms = Get-VM if ($vms.Length -gt 0) { - $snapshots = $vms | Get-VMSnapshot + $snapshots = Get-VMSnapshot -VMName * } - + Foreach ($vm in $vms) { $i=0 $note = $vm.Notes -replace "\r",""