- tickets do not have 'node_id' in them
authorMark Huang <mlhuang@cs.princeton.edu>
Thu, 1 Feb 2007 21:55:59 +0000 (21:55 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Thu, 1 Feb 2007 21:55:59 +0000 (21:55 +0000)
sm.py

diff --git a/sm.py b/sm.py
index bbf3b9f..2d88151 100644 (file)
--- a/sm.py
+++ b/sm.py
@@ -50,7 +50,7 @@ def GetSlivers(data, fullupdate=True):
         finally: f.close()
     except: logger.log_exc()
 
-    if data['node_id'] != node_id: return
+    if data.has_key('node_id') and data['node_id'] != node_id: return
     for sliver in data['slivers']:
         rec = sliver.copy()
         rec.setdefault('timestamp', data['timestamp'])
@@ -88,7 +88,7 @@ def GetSlivers(data, fullupdate=True):
             accounts.get(name).start(delay=cumulative_delay)
             cumulative_delay += 3
 
-def deliver_ticket(data): return GetSlivers_callback(data, fullupdate=False)
+def deliver_ticket(data): return GetSlivers(data, fullupdate=False)
 
 
 def start(options, config):