mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
beacons: fix pyroute2 import statement
Use public "root" imports -- `from pyroute2 import ...` The public API is guaranteed to stay the same despite any internal layout changes. Bug-Url: https://github.com/saltstack/salt/issues/34978
This commit is contained in:
parent
fe7c399b54
commit
3fa9c10136
@ -8,7 +8,7 @@ Beacon to monitor network adapter setting changes on Linux
|
||||
from __future__ import absolute_import
|
||||
# Import third party libs
|
||||
try:
|
||||
from pyroute2.ipdb import IPDB
|
||||
from pyroute2 import IPDB
|
||||
IP = IPDB()
|
||||
HAS_PYROUTE2 = True
|
||||
except ImportError:
|
||||
|
Loading…
Reference in New Issue
Block a user