Skip to content

Commit

Permalink
Merge pull request #4224 from ricmestre/fix4223
Browse files Browse the repository at this point in the history
TeamsFeedbackPolicy: Fix condition when resource is absent
  • Loading branch information
NikCharlebois authored Jan 24, 2024
2 parents 2c3ab90 + a7e092c commit d68dde6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
* TeamsEventsPolicy
* Add missing attributes
FIXES [#4242](https://github.com/microsoft/Microsoft365DSC/issues/4242)
* TeamsFeedbackPolicy
* Fix condition when resource is absent
FIXES [#4223](https://github.com/microsoft/Microsoft365DSC/issues/4223)
* TeamsFilesPolicy
* Fix condition when resource is absent
FIXES [#4225](https://github.com/microsoft/Microsoft365DSC/issues/4225)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ function Test-TargetResource
$ValuesToCheck = ([Hashtable]$PSBoundParameters).Clone()
$ValuesToCheck.Remove('Identity') | Out-Null

if ($CurrentValues.Ensure -eq 'Absent')
if ($CurrentValues.Ensure -ne $PSBoundParameters.Ensure)
{
Write-Verbose -Message "Test-TargetResource returned $false"
return $false
Expand Down

0 comments on commit d68dde6

Please sign in to comment.