existing_record should be existing_records
authorTony Mack <tmack@cs.princeton.edu>
Fri, 16 Oct 2009 21:13:56 +0000 (21:13 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Fri, 16 Oct 2009 21:13:56 +0000 (21:13 +0000)
sfa/plc/sfaImport.py

index a2ae5e0..13d75e6 100644 (file)
@@ -232,7 +232,7 @@ class sfaImport:
             table.insert(auth_record)
         else:
             trace("Import: %s exists, updating " % hrn)
-            existing_record = existing_record[0]
+            existing_record = existing_records[0]
             auth_record['record_id'] = existing_record['record_id']
             table.update(auth_record)