From 5b9e1331f8a352085a60de257594dd6f818a683d Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 18 Jun 2018 21:56:37 +0200 Subject: [PATCH] library: fix try-count handling in SysUtil.link_infos() https://github.com/linux-system-roles/network/issues/61 --- library/network_connections.py | 1 + 1 file changed, 1 insertion(+) diff --git a/library/network_connections.py b/library/network_connections.py index 5888409..0493f19 100644 --- a/library/network_connections.py +++ b/library/network_connections.py @@ -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