예제 #1
0
파일: common.py 프로젝트: kkltcjk/1026
def init_conf_file(api=False):
    global CONF_FILE
    if api:
        CONF_FILE = ConfigurationFile(cf.get_sections_api(),
                                      '/tmp/apexlake/apexlake.conf')
    else:
        CONF_FILE = ConfigurationFile(cf.get_sections(),
                                      '/tmp/apexlake/apexlake.conf')
예제 #2
0
def init_conf_file(api=False):
    global CONF_FILE
    if api:
        CONF_FILE = ConfigurationFile(cf.get_sections_api(),
                                      '/tmp/apexlake/apexlake.conf')
    else:
        CONF_FILE = ConfigurationFile(cf.get_sections(),
                                      '/tmp/apexlake/apexlake.conf')
예제 #3
0
파일: common.py 프로젝트: kkltcjk/1026
 def validate_configuration_file_section(section, message):
     if section not in cf.get_sections():
         raise ValueError(message)
     return True
def init_conf_file(api=False):
    global CONF_FILE
    if api:
        CONF_FILE = ConfigurationFile(cf.get_sections_api())
    else:
        CONF_FILE = ConfigurationFile(cf.get_sections())
 def validate_configuration_file_section(section, message):
     if section not in cf.get_sections():
         raise ValueError(message)