again, this change belongs with the addition of the builtin 'name' column for authorities
Thierry Parmentelat [Tue, 2 Jun 2015 13:40:49 +0000 (15:40 +0200)]
sfa/planetlab/pldriver.py

index d16b23a..896aeac 100644 (file)
@@ -312,7 +312,7 @@ class PlDriver (Driver):
 
         elif type == "authority":
             pl_record["login_base"] = PlXrn(xrn=hrn,type='authority').pl_login_base()
-            if "name" not in sfa_record:
+            if "name" not in sfa_record or not sfa_record['name']:
                 pl_record["name"] = hrn
             if "abbreviated_name" not in sfa_record:
                 pl_record["abbreviated_name"] = hrn