From 31d7aa8d987530b11fa208ac87ffd1d31c22fdf3 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Fri, 29 Sep 2017 01:13:53 +0100 Subject: [PATCH] svc/conntrack.in (kickpeers): Rename `map' variable. We shall want to call the `map' function. --- svc/conntrack.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/svc/conntrack.in b/svc/conntrack.in index 043c9698..99491b1c 100644 --- a/svc/conntrack.in +++ b/svc/conntrack.in @@ -361,7 +361,7 @@ def kickpeers(): ## Find out which peer in the group ought to be active. ip = None - map = {} + statemap = {} want = None for t, p, n in pp: if p is None or not upness: @@ -374,7 +374,7 @@ def kickpeers(): if upness and ip is None and \ ipq is not None and ipq.withinp(n): if T._debug: print '# %s: SELECTED' % info - map[t] = 'up' + statemap[t] = 'up' select.append('%s=%s' % (g, t)) if t == 'down' or t.startswith('down/'): want = None @@ -382,14 +382,14 @@ def kickpeers(): want = t ip = ipq else: - map[t] = 'down' + statemap[t] = 'down' if T._debug: print '# %s: skipped' % info ## Shut down the wrong ones. found = False - if T._debug: print '# peer-map = %r' % map + if T._debug: print '# peer-map = %r' % statemap for p in peers: - what = map.get(p, 'leave') + what = statemap.get(p, 'leave') if what == 'up': found = True if T._debug: print '# peer %s: already up' % p -- 2.11.0