win_regedit: Make the string comparison case sensitive when comparing string values (#25536)

* Make the string comparison case sensitive when comparing string values

* Added documentation note about change detection now being case-sensitive
This commit is contained in:
jhawkesworth 2017-06-27 00:51:50 +01:00 committed by Jordan Borean
parent 74efda65cd
commit 1ec115d830
2 changed files with 2 additions and 1 deletions

View file

@ -83,7 +83,7 @@ Function Compare-Data {
return $false
}
} elseif ($ReferenceData -is [string] -or $ReferenceData -is [int]) {
if ($ReferenceData -eq $DifferenceData) {
if ($ReferenceData -ceq $DifferenceData) {
return $true
} else {
return $false

View file

@ -76,6 +76,7 @@ notes:
- Check-mode C(-C/--check) and diff output C(-D/--diff) are supported, so that you can test every change against the active configuration before
applying changes.
- Beware that some registry hives (C(HKEY_USERS) in particular) do not allow to create new registry paths.
- Since ansible 2.4, when checking if a string registry value has changed, a case-sensitive test is used. Previously the test was case-insensitive.
author: "Adam Keech (@smadam813), Josh Ludwig (@joshludwig)"
'''