We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e30fd11 commit 3920cb0Copy full SHA for 3920cb0
1 file changed
libraries/microsoft-agents-a365-observability-core/microsoft_agents_a365/observability/core/utils.py
@@ -178,19 +178,19 @@ def wrapper(*args, **kwargs):
178
179
def validate_and_normalize_ip(ip_string: str | None) -> str | None:
180
"""Validate and normalize an IP address string.
181
-
+
182
Args:
183
ip_string: The IP address string to validate (IPv4 or IPv6)
184
185
Returns:
186
The normalized IP address string if valid, None if invalid or None input
187
188
Logs:
189
Error message if the IP address is invalid
190
"""
191
if ip_string is None:
192
return None
193
194
try:
195
# Validate and normalize IP address
196
ip_obj = ip_address(ip_string)
0 commit comments