From: Tony Mack Date: Tue, 4 Aug 2009 20:48:17 +0000 (+0000) Subject: dont forget to check for type 'authority' X-Git-Tag: sfa-0.9-1~122 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4284551e5c8addb77138ca24eeeb88ee73be689e;p=sfa.git dont forget to check for type 'authority' --- 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"