[contrib/wlcg] Update config/base priority in WLCGFileSystem constructor.
@@ -36,8 +36,8 @@ class WLCGFileSystem(RemoteFileSystem):
kwargs.setdefault("atomic_contexts", True)
kwargs.setdefault("permissions", False)
- # prepare the gfal options
- # resolution order: config, base+bases, default wlcg fs section
+ # prepare the gfal options, prefer base[+bases] over config
+ if not base:
cfg = Config.instance()
if not config:
config = cfg.get("target", "default_wlcg_fs")
@@ -56,7 +56,7 @@ class WLCGFileSystem(RemoteFileSystem):
bases = _bases
# base is required
- if base is None:
+ if not base:
raise Exception("invalid arguments, set either config, base or the "
"target.default_wlcg_fs option in your law config")
