From 82f1b29cf68eb3d13f85586f396635108c525755 Mon Sep 17 00:00:00 2001
From: Mike Hibler <mike@flux.utah.edu>
Date: Mon, 24 Sep 2007 22:41:16 +0000
Subject: [PATCH] Avoid exception in elabinelab.newnode_info caused by nodes
 with interface table entries but no wires table entries (e.g., the pc3000
 eth1's)

---
 xmlrpc/emulabserver.py.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xmlrpc/emulabserver.py.in b/xmlrpc/emulabserver.py.in
index 53d8636090..87a9990ed4 100755
--- a/xmlrpc/emulabserver.py.in
+++ b/xmlrpc/emulabserver.py.in
@@ -4455,6 +4455,7 @@ class elabinelab:
                              "left join wires as s on s.node_id1=i.node_id "
                              "   and s.card1=i.card "
                              "where r.node_id=%s "
+			     "   and s.node_id2!='' "
                              "order by r.node_id,iface",
                              (nodeid,))
         
-- 
GitLab