From b94a614b7ea812c128853c83dfd46665ce5ad105 Mon Sep 17 00:00:00 2001 From: "jhawkesworth@users.noreply.github.com" Date: Fri, 22 Apr 2016 18:37:31 +0100 Subject: [PATCH] fix problem where you couldn't compare empty strings in win_regedit following my previous change --- lib/ansible/modules/extras/windows/win_regedit.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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