summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-01-14 01:22:15 +0100
committermakefu <github@syntax-fehler.de>2014-01-14 01:22:15 +0100
commit12ab89371d1c92bde280a117f0920a8fa0b21d1e (patch)
tree9eaf9c86176025d70fb6634b23f7cffbb6df14af /retiolum/scripts/adv_graphgen
parent18f9b8e6e49aead70e69435324f086f3d640575d (diff)
tinc_stats: fix missing has_key
Diffstat (limited to 'retiolum/scripts/adv_graphgen')
-rw-r--r--retiolum/scripts/adv_graphgen/tinc_stats/Graph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/retiolum/scripts/adv_graphgen/tinc_stats/Graph.py b/retiolum/scripts/adv_graphgen/tinc_stats/Graph.py
index 37122ee5..9d80e62d 100644
--- a/retiolum/scripts/adv_graphgen/tinc_stats/Graph.py
+++ b/retiolum/scripts/adv_graphgen/tinc_stats/Graph.py
@@ -131,7 +131,7 @@ def print_node(k,v):
node = " "+k+"[label=\""
node += k+"\\l"
node += "availability: %f\\l" % v['availability']
- if v.has_key('num_conns'):
+ if 'num_conns' in v:
node += "Num Connects:"+str(v['num_conns'])+"\\l"
node += "external:"+v['external-ip']+":"+v['external-port']+"\\l"
for addr in v.get('internal-ip',['dunno lol']):