
This patch addresses issues with the need for a global config. Now any module needing config access can simply import the config module. To facilitate this there were a lot of minor changes to config use throughout artifice, as well as changes to classes that were passed a config on creation. Also some changes to constants so that the new config system can work with them easier. Change-Id: I6e9b4cbf0ff30683dc13e37f13334f7ed7ee7add
21 lines
434 B
Python
21 lines
434 B
Python
|
|
# This is simply a namespace for global config storage
|
|
main = None
|
|
export_config = None
|
|
auth = None
|
|
ceilometer = None
|
|
transformers = None
|
|
|
|
|
|
def setup_config(conf):
|
|
global main
|
|
main = conf['main']
|
|
global export_config
|
|
export_config = conf['export_config']
|
|
global auth
|
|
auth = conf['auth']
|
|
global ceilometer
|
|
ceilometer = conf['ceilometer']
|
|
global transformers
|
|
transformers = conf['transformers']
|