dont forget to check for type 'authority'
authorTony Mack <tmack@cs.princeton.edu>
Tue, 4 Aug 2009 20:48:17 +0000 (20:48 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Tue, 4 Aug 2009 20:48:17 +0000 (20:48 +0000)
sfa/methods/register.py

index ee807b8..ef4f186 100644 (file)
@@ -78,10 +78,8 @@ class register(Method):
 
             # if registering a sa, see if a ma already exists
             # if registering a ma, see if a sa already exists
-            if (type == "sa"):
-                other_rec = table.resolve("ma", record.get_name())
-            elif (type == "ma"):
-                other_rec = table.resolve("sa", record.get_name())
+            if type in ["authority", "sa", "ma"]:
+                other_rec = table.resolve("authority", record.get_name())
 
             if other_rec:
                 print >> log, "linking ma and sa to the same plc site"