diff options
author | chriskarel <chriskarel@users.noreply.github.com> | 2018-01-11 15:43:02 -0600 |
---|---|---|
committer | Toshio Kuratomi <a.badger@gmail.com> | 2018-01-15 10:37:52 -0800 |
commit | 6e594340c2a9469719dca666e9e1c2b07faf5741 (patch) | |
tree | 51797e81cfc60a253c9839f439eea84f8939a10e | |
parent | 4eea0cec58bb0cbd93b1321a95e6ff0401e0d40f (diff) | |
download | ansible-6e594340c2a9469719dca666e9e1c2b07faf5741.tar.gz |
Adding "-SyncWindow 0" flag to Compare-Object call (#34656)
Adding "-SyncWindow 0" flag to the Compare-Object call used to determine if the existing and proposed IP address lists are the same. This makes the array comparison mark changes in order as a difference.
Fix for bug #34651
(cherry picked from commit bb9dcb0d2ba6c8eecd82ae4e276c3b3b763c5adb)
-rw-r--r-- | lib/ansible/modules/windows/win_dns_client.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/windows/win_dns_client.ps1 b/lib/ansible/modules/windows/win_dns_client.ps1 index 15a80f5f68..c842c0339f 100644 --- a/lib/ansible/modules/windows/win_dns_client.ps1 +++ b/lib/ansible/modules/windows/win_dns_client.ps1 @@ -140,7 +140,7 @@ Function Get-DnsClientMatch { } Else { - $v4_match = @(Compare-Object $current_dns_v4 $ipv4_addresses).Count -eq 0 + $v4_match = @(Compare-Object $current_dns_v4 $ipv4_addresses -SyncWindow 0).Count -eq 0 } # TODO: implement IPv6 |