Skip to content

Commit

Permalink
[dsccommunity#569] Fixed a missing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bozho committed Jun 9, 2017
1 parent a9b7894 commit 7767acf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function Set-TargetResource

$instanceNamesRegistryKey = 'HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\RS'

if ( Get-ItemProperty -Path -Name $InstanceName -ErrorAction SilentlyContinue )
if ( Get-ItemProperty -Path $instanceNamesRegistryKey -Name $InstanceName -ErrorAction SilentlyContinue )
{
# smart import of the SQL module
Import-SQLPSModule
Expand Down

0 comments on commit 7767acf

Please sign in to comment.