Index: trunk/ippToPsps/jython/ipptopspsdb.py
===================================================================
--- trunk/ippToPsps/jython/ipptopspsdb.py	(revision 35183)
+++ trunk/ippToPsps/jython/ipptopspsdb.py	(revision 35184)
@@ -1079,5 +1079,5 @@
     Inserts new box into box table. If it already exisits, it returns existing box id 
     '''
-    def isBoxIngested(self, id):
+    def isBoxIngested(self, id, host):
 
         # set the field 'ingested' to 1 for this box
@@ -1088,10 +1088,18 @@
                 print "no matching boxes for ", str(id)
                 raise
-            status = rs.getInt(1)
-        except:
-            print "failed to set box ", str(id), "as ingested"
+            value = rs.getString(1)
+        except:
+            print "failed to find box for ", str(id)
             raise
 
-        return status
+        if value == host:
+            return 1
+
+        if value == "none":
+            return 0
+
+        print "box ingested host ", value, " does not match db host ", host
+        raise
+
     '''
     Inserts new box into box table. If it already exisits, it returns existing box id 
