From 4284551e5c8addb77138ca24eeeb88ee73be689e Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 4 Aug 2009 20:48:17 +0000 Subject: [PATCH] dont forget to check for type 'authority' --- sfa/methods/register.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sfa/methods/register.py b/sfa/methods/register.py index ee807b8d..ef4f1867 100644 --- a/sfa/methods/register.py +++ b/sfa/methods/register.py @@ -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" -- 2.47.0