process putatives: Properly report regexp mismatch ignores
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 24 Apr 2017 12:23:18 +0000 (13:23 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 24 Apr 2017 12:23:18 +0000 (13:23 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
hippotatlib/__init__.py

index b06d225..0f59f0d 100644 (file)
@@ -426,7 +426,7 @@ def _cfg_process_putatives():
           # plan D "[<servername> <client>]" part 2
           ci = ipaddr(pcs)
         except AddressValueError:
-          # plan F "[<some thing we do not understand>]"
+          # plan F branch 1 "[<some thing we do not understand>]"
           log_ignore('bad-addr')
           continue
 
@@ -437,6 +437,9 @@ def _cfg_process_putatives():
           putative(clients, ci, pcs)
           putative(servers, pss, pss)
           continue
+      else:
+        # plan F branch 2 "[<some thing we do not understand>]"
+        log_ignore('nomatch '+ repr(serverclient_re))
 
     else: # no AddressValueError
       # plan B "[<client>" part 2