process putatives: Properly report regexp mismatch ignores
[hippotat] / hippotatlib / __init__.py
index bd5d2c3..0f59f0d 100644 (file)
@@ -424,9 +424,9 @@ def _cfg_process_putatives():
 
         try:
           # plan D "[<servername> <client>]" part 2
-          ci = ipaddr(pc)
+          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