Ejemplo n.º 1
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')
Ejemplo n.º 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')
Ejemplo n.º 3
0
 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)