svc/conntrack.in: Iterate over the output of `svcsubmit'.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 29 Sep 2017 00:20:09 +0000 (01:20 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 14 Jun 2018 09:34:25 +0000 (10:34 +0100)
This forces out exceptions caused by command failures which were
otherwise being dropped.

svc/conntrack.in

index 172ca1f..7379303 100644 (file)
@@ -321,7 +321,7 @@ def kickpeers():
       if want is not None and not found:
         def _(want = want):
           try:
-            SM.svcsubmit('connect', 'active', want)
+            list(SM.svcsubmit('connect', 'active', want))
           except T.TripeError, exc:
             SM.warn('conntrack', 'connect-failed', want, *exc.args)
         if T._debug: print '#   peer %s: bring up' % want