Skip to content

Commit b1e01b6

Browse files
committed
Update Set-TargetResource to use correct service name variable for Restart-ReportingServicesService
1 parent 0501697 commit b1e01b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/DSCResources/DSC_SqlRS/DSC_SqlRS.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ function Set-TargetResource
836836
elseif ( $restartReportingService -and (-not $SuppressRestart) )
837837
{
838838
Write-Verbose -Message $script:localizedData.Restart
839-
Restart-ReportingServicesService -ServiceName $reportingServicesData.Configuration.ServiceName -WaitTime 30
839+
Restart-ReportingServicesService -ServiceName $reportingServicesServiceName -WaitTime 30
840840

841841
<#
842842
Wait for the service to be fully ready after restart before attempting

0 commit comments

Comments
 (0)