From a0943607552520a8c29a16042915b94d3dc7dca0 Mon Sep 17 00:00:00 2001 From: Marko Bozikovic Date: Thu, 25 Apr 2019 13:44:19 +0200 Subject: [PATCH] [#1331] A fix for meta tests. --- CHANGELOG.md | 4 +++- DSCResources/MSFT_SqlRS/MSFT_SqlRS.psm1 | 11 ++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d1bbcc96f..fe9a19ec7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,7 +27,9 @@ - Changes to SqlServerPermission - Added en-US localization ([issue #619](https://github.com/PowerShell/SqlServerDsc/issues/619)). - Changes to SqlRS - - Reporting Services are restarted after changing settings, unless `$SuppressRestart` parameter is set ([issue #1331](https://github.com/PowerShell/SqlServerDsc/issues/1331)). `$SuppressRestart` will also prevent Reporting Services restart after initialization. + - Reporting Services are restarted after changing settings, unless + `$SuppressRestart` parameter is set ([issue #1331](https://github.com/PowerShell/SqlServerDsc/issues/1331)). + `$SuppressRestart` will also prevent Reporting Services restart after initialization. ## 12.4.0.0 diff --git a/DSCResources/MSFT_SqlRS/MSFT_SqlRS.psm1 b/DSCResources/MSFT_SqlRS/MSFT_SqlRS.psm1 index 00e31ccf9..570f39191 100644 --- a/DSCResources/MSFT_SqlRS/MSFT_SqlRS.psm1 +++ b/DSCResources/MSFT_SqlRS/MSFT_SqlRS.psm1 @@ -731,6 +731,11 @@ function Set-TargetResource If connections to the Reporting Services must use SSL. If this parameter is not assigned a value, the default is that Reporting Services does not use SSL. + + .PARAMETER SuppressRestart + Reporting Services need to be restarted after initialization or + settings change. If this parameter is set to $true, Reporting Services + will not be restarted, even after initialisation. #> function Test-TargetResource { @@ -768,7 +773,11 @@ function Test-TargetResource [Parameter()] [System.Boolean] - $UseSsl + $UseSsl, + + [Parameter()] + [System.Boolean] + $SuppressRestart ) $result = $true