git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
read config from the python file and provide a default
[sfa.git]
/
sfa
/
util
/
config.py
diff --git
a/sfa/util/config.py
b/sfa/util/config.py
index
a61ce3d
..
d772346
100644
(file)
--- a/
sfa/util/config.py
+++ b/
sfa/util/config.py
@@
-28,7
+28,7
@@
class Config:
fast but no type conversions.
"""
fast but no type conversions.
"""
- def __init__(self, config_file = "/etc/sfa/sfa_config"):
+ def __init__(self, config_file = "/etc/sfa/sfa_config
.py
"):
self.config_file = None
self.config_path = None
self.data_path = None
self.config_file = None
self.config_path = None
self.data_path = None
@@
-54,6
+54,9
@@
class Config:
# default to /var/lib/sfa not specified in config
self.SFA_CONFIG_DIR="/etc/sfa"
# default to /var/lib/sfa not specified in config
self.SFA_CONFIG_DIR="/etc/sfa"
+ if not hasattr(self, 'SFA_REGISTRY_LEVEL1_AUTH'):
+ self.SFA_REGISTRY_LEVEL1_AUTH=None
+
# define interface types
# this will determine which manager to use
if not hasattr(self, 'SFA_REGISTRY_TYPE'):
# define interface types
# this will determine which manager to use
if not hasattr(self, 'SFA_REGISTRY_TYPE'):