From c8a687def5d6a597b19a1e8a78f4fd0899c0c7ea Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 12 Mar 2021 09:44:45 +0100 Subject: [PATCH] veeam silently remove message --- centreon/common/powershell/veeam/jobstatus.pm | 1 + centreon/common/powershell/veeam/licenses.pm | 1 + centreon/common/powershell/veeam/listjobs.pm | 1 + centreon/common/powershell/veeam/tapejobs.pm | 1 + 4 files changed, 4 insertions(+) diff --git a/centreon/common/powershell/veeam/jobstatus.pm b/centreon/common/powershell/veeam/jobstatus.pm index 804f1f6f1..c4c939af9 100644 --- a/centreon/common/powershell/veeam/jobstatus.pm +++ b/centreon/common/powershell/veeam/jobstatus.pm @@ -39,6 +39,7 @@ $culture = new-object "System.Globalization.CultureInfo" "en-us" $ps .= ' $ProgressPreference = "SilentlyContinue" +$WarningPreference = "SilentlyContinue" Try { $ErrorActionPreference = "Stop" diff --git a/centreon/common/powershell/veeam/licenses.pm b/centreon/common/powershell/veeam/licenses.pm index 71d694b97..12d2a3341 100644 --- a/centreon/common/powershell/veeam/licenses.pm +++ b/centreon/common/powershell/veeam/licenses.pm @@ -39,6 +39,7 @@ $culture = new-object "System.Globalization.CultureInfo" "en-us" $ps .= ' $ProgressPreference = "SilentlyContinue" +$WarningPreference = "SilentlyContinue" Try { $ErrorActionPreference = "Stop" diff --git a/centreon/common/powershell/veeam/listjobs.pm b/centreon/common/powershell/veeam/listjobs.pm index ec087e7e7..155133889 100644 --- a/centreon/common/powershell/veeam/listjobs.pm +++ b/centreon/common/powershell/veeam/listjobs.pm @@ -39,6 +39,7 @@ $culture = new-object "System.Globalization.CultureInfo" "en-us" $ps .= ' $ProgressPreference = "SilentlyContinue" +$WarningPreference = "SilentlyContinue" Try { $ErrorActionPreference = "Stop" diff --git a/centreon/common/powershell/veeam/tapejobs.pm b/centreon/common/powershell/veeam/tapejobs.pm index 4071e30c8..1d03fb922 100644 --- a/centreon/common/powershell/veeam/tapejobs.pm +++ b/centreon/common/powershell/veeam/tapejobs.pm @@ -39,6 +39,7 @@ $culture = new-object "System.Globalization.CultureInfo" "en-us" $ps .= ' $ProgressPreference = "SilentlyContinue" +$WarningPreference = "SilentlyContinue" Try { $ErrorActionPreference = "Stop"