Skip to content

Commit

Permalink
Fix AdcsAuthorityInformationAccess: always makes a change dsccommunit…
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Hughes committed Apr 18, 2024
1 parent 6a5cbf4 commit e9a8e98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- AdcsAuthorityInformationAccess
- Removed `AllowRestartService` parameter from compared settings, force `Get-CaAiaUriList`
to return unmangled `System.String[]` with single values.
Fixes [Issue #138](https://github.com/dsccommunity/ActiveDirectoryCSDsc/issues/138).

### Changed

- ActiveDirectoryCSDsc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ function Test-TargetResource
-Verbose:$VerbosePreference

$null = $PSBoundParameters.Remove('IsSingleInstance')
$null = $PSBoundParameters.Remove('AllowRestartService')

return Test-DscParameterState `
-CurrentValues $currentSettings `
Expand Down Expand Up @@ -234,7 +235,8 @@ function Get-CaAiaUriList

Write-Verbose -Message ($script:localizedData.GettingAiaUrisMessage -f $ExtensionType)

return [System.String[]] (Get-CAAuthorityInformationAccess | Where-Object -Property $ExtensionType -Eq $true).Uri
$UriList = [System.String[]](Get-CAAuthorityInformationAccess | Where-Object -Property $ExtensionType -Eq $true).Uri
return ,$UriList
}

Export-ModuleMember -Function *-TargetResource

0 comments on commit e9a8e98

Please sign in to comment.