mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-20 17:59:00 +00:00
library: fix try-count handling in SysUtil.link_infos()
https://github.com/linux-system-roles/network/issues/61
This commit is contained in:
parent
ed1d30a53d
commit
5b9e1331f8
1 changed files with 1 additions and 0 deletions
|
|
@ -397,6 +397,7 @@ class SysUtil:
|
|||
try_count = 0
|
||||
b = None
|
||||
while True:
|
||||
try_count += 1
|
||||
try:
|
||||
# there is a race in that we lookup properties by ifname
|
||||
# and interfaces can be renamed. Try to avoid that by fetching
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue