Merge "Fix to prevent truncating IPv6 value when NTP alarm is triggered."

changes/45/883845/1
Zuul 2023-05-01 20:09:35 +00:00 committed by Gerrit Code Review
commit 58a5726e58
1 changed files with 1 additions and 1 deletions

View File

@ -724,7 +724,7 @@ def _get_assoc_srcadr(assoc_id, ip):
srcadr = ''
# IPv4 no further processing required, returns same IP value
if assoc_id < 1 or socket.AF_INET6 != _is_ip_address(ip):
if assoc_id < 1 or socket.AF_INET == _is_ip_address(ip):
return ip
# Do NTP Query to retrieve assoc information