def config_init(conf, config_files, args=None, **kwargs): if args is None: args = [] for conf_file in config_files: args.extend(['--config-file', conf_file]) if conf is None: release = version.version_info.release_string() cfg.CONF(args=args, project='dragonflow', version='%%(prog)s %s' % release, **kwargs) else: conf(args)
def config_parse(conf=None, args=None, **kwargs): if args is None: args = [] args += ['--config-file', etcdir('neutron.conf')] args += ['--config-file', etcdir('dragonflow.ini')] if conf is None: release = version.version_info.release_string() cfg.CONF(args=args, project='dragonflow', version='%%(prog)s %s' % release, **kwargs) else: conf(args)