Skip to content

Commit

Permalink
PR Comments fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
SSvilen committed Aug 21, 2019
1 parent 40ee65f commit 66ddd98
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion DSCResources/MSFT_ADUser/MSFT_ADUser.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -928,10 +928,12 @@ function Test-TargetResource
{
$getParameters['DomainController'] = $PSBoundParameters['DomainController']
}

if ($PSBoundParameters.ContainsKey('Credential'))
{
$getParameters['Credential'] = $PSBoundParameters['Credential']
}

$targetResource = Get-TargetResource @getParameters

$isCompliant = $true
Expand Down Expand Up @@ -1594,10 +1596,12 @@ function Set-TargetResource
{
$getParameters['DomainController'] = $PSBoundParameters['DomainController']
}

if ($PSBoundParameters.ContainsKey('Credential'))
{
$getParameters['Credential'] = $PSBoundParameters['Credential']
}

$targetResource = Get-TargetResource @getParameters

# Add common name, ensure and enabled as they may not be explicitly passed
Expand Down Expand Up @@ -2070,7 +2074,7 @@ function Get-MD5HashString
$md5 = [System.Security.Cryptography.MD5]::Create()
$hashBytes = $md5.ComputeHash($Bytes)

$md5ReturnValue = [System.BitConverter]::ToString($hashBytes).Replace('-','')
$md5ReturnValue = [System.BitConverter]::ToString($hashBytes).Replace('-', '')
}

return $md5ReturnValue
Expand Down

0 comments on commit 66ddd98

Please sign in to comment.