library: fix try-count handling in SysUtil.link_infos()

https://github.com/linux-system-roles/network/issues/61
This commit is contained in:
Thomas Haller 2018-06-18 21:56:37 +02:00
parent ed1d30a53d
commit 5b9e1331f8

View file

@ -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