Skip to content

Commit

Permalink
[dsccommunity#1331] Code review fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bozho committed Apr 25, 2019
1 parent 100ccf8 commit 099c1fc
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 6 additions & 1 deletion DSCResources/MSFT_SqlRS/MSFT_SqlRS.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,13 @@ function Set-TargetResource
}
}

if ( $restartReportingService -and (-not $SuppressRestart) )
if ( $restartReportingService -and $SuppressRestart )
{
Write-Warning -Message $script:localizedData.SuppressRestart
}
elseif ( $restartReportingService -and (-not $SuppressRestart) )
{
Write-Verbose -Message $script:localizedData.Restart
Restart-ReportingServicesService -SQLInstanceName $InstanceName -WaitTime 30
}
}
Expand Down
6 changes: 6 additions & 0 deletions DSCResources/MSFT_SqlRS/en-US/MSFT_SqlRS.strings.psd1
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Localized resources for SqlSetup

ConvertFrom-StringData @'
Restart = Restarting Reporting Services.
SuppressRestart = Suppressing restart of Reporting Services.
'@
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ Initializes and configures SQL Reporting Services server.
* **`[Boolean]` UseSsl** _(Write)_: 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.
* **`[Boolean]` SupressRestart** _(Write)_: Reporting Services need to be restarted
* **`[Boolean]` SuppressRestart** _(Write)_: 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.

Expand Down

0 comments on commit 099c1fc

Please sign in to comment.