From e02119ce3245a1c4045719ebd26446de6fcc7353 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 28 Sep 2021 14:29:53 +0200 Subject: [PATCH] fix(veeam): snap registred (#3151) --- centreon/common/powershell/veeam/functions.pm | 5 ----- 1 file changed, 5 deletions(-) diff --git a/centreon/common/powershell/veeam/functions.pm b/centreon/common/powershell/veeam/functions.pm index 7c482904a..9fb775b8d 100644 --- a/centreon/common/powershell/veeam/functions.pm +++ b/centreon/common/powershell/veeam/functions.pm @@ -48,16 +48,11 @@ if ($registered -eq 0) { if (@(Get-Module | Where-Object {$_.Name -Match "Veeam.Backup.PowerShell"} ).count -eq 0) { Try { Import-Module -DisableNameChecking -Name "Veeam.Backup.PowerShell" - $registered=1 } Catch { Write-Host $Error[0].Exception exit 1 } } - if ($registered -eq 0) { - Write-Host "Snap-In/Module Veeam no present or not registered" - exit 1 - } } ';