diff --git a/lib/ansible/modules/extras/windows/win_regedit.ps1 b/lib/ansible/modules/extras/windows/win_regedit.ps1 index 1b5c9cf991..c98c79ce8e 100644 --- a/lib/ansible/modules/extras/windows/win_regedit.ps1 +++ b/lib/ansible/modules/extras/windows/win_regedit.ps1 @@ -63,9 +63,9 @@ Function Test-RegistryValueData { Function Compare-RegistryData { Param ( [parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()]$ReferenceData, + [AllowEmptyString()]$ReferenceData, [parameter(Mandatory=$true)] - [ValidateNotNullOrEmpty()]$DifferenceData + [AllowEmptyString()]$DifferenceData ) $refType = $ReferenceData.GetType().Name