git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2444540
)
added some default configuration variables
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 1 Dec 2009 16:25:40 +0000
(16:25 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 1 Dec 2009 16:25:40 +0000
(16:25 +0000)
sfa/util/config.py
patch
|
blob
|
history
diff --git
a/sfa/util/config.py
b/sfa/util/config.py
index
8a37997
..
fba98d1
100644
(file)
--- a/
sfa/util/config.py
+++ b/
sfa/util/config.py
@@
-49,6
+49,20
@@
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"
+ # define interface types
+ # this will determine which manager to use
+ if not hasattr(self, 'SFA_REGISTRY_TYPE'):
+ self.SFA_REGISTRY_TYPE='pl'
+
+ if not hasattr(self, 'SFA_AGGREGATE_TYPE'):
+ self.SFA_AGGREGATE_TYPE='pl'
+
+ if not hasattr(self, 'SFA_SM_TYPE'):
+ self.SFA_SM_TYPE='pl'
+
+ if not hasattr(self, 'SFA_COMPONENT_TYPE'):
+ self.SFA_COMPONENT_TYPE='pl'
+
# create the data directory if it doesnt exist
if not os.path.isdir(self.SFA_DATA_DIR):
os.mkdir(self.SFA_DATA_DIR)
# create the data directory if it doesnt exist
if not os.path.isdir(self.SFA_DATA_DIR):
os.mkdir(self.SFA_DATA_DIR)