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')
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)