Drop wrong stacklevel

This is follow-up of 077e43698e and fixes
the wrong stack level for deprecation warning. We don't have to look
for the point of upper caller.

Change-Id: I615d995c42e6ff689d25f5db8026d9cd684d93ad
This commit is contained in:
Takashi Kajinami 2024-02-22 00:03:56 +09:00
parent a10ac95be1
commit f15a4b6206

View File

@ -17,7 +17,7 @@ from oslo_log import log as logging
if os.name == 'nt':
warnings.warn('Support for Windows OS is deprecated.',
category=DeprecationWarning, stacklevel=3)
category=DeprecationWarning)
from os_vif.internal.ip.windows.impl_netifaces import \
Netifaces as ip_lib_class
else: