mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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
This commit is contained in:
parent
2d4a43bb0a
commit
bb9dcb0d2b
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ Function Get-DnsClientMatch {
|
||||||
}
|
}
|
||||||
|
|
||||||
Else {
|
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
|
# TODO: implement IPv6
|
||||||
|
|
Loading…
Reference in a new issue