From: Thierry Parmentelat Date: Tue, 2 Jun 2015 13:40:49 +0000 (+0200) Subject: again, this change belongs with the addition of the builtin 'name' column for authorities X-Git-Tag: sfa-3.1-16~21 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=da6eb040da28f9163fd727cd50b5d19c89c3729a again, this change belongs with the addition of the builtin 'name' column for authorities --- diff --git a/sfa/planetlab/pldriver.py b/sfa/planetlab/pldriver.py index d16b23a6..896aeac9 100644 --- a/sfa/planetlab/pldriver.py +++ b/sfa/planetlab/pldriver.py @@ -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