From d6a2728eebb90bf37fbfda4f6f5f5191aa52f457 Mon Sep 17 00:00:00 2001 From: caoyuan Date: Mon, 12 Feb 2018 16:03:02 +0800 Subject: [PATCH] Delete the duplicated default_config_files defiend when use instance as fuction, python will invoke the __call__, and in oslo.config, the default_config_files is defined as None [0], so it is unnecessary to defined again in freezer, this patch to remove it. [0]: https://github.com/openstack/oslo.config/blob/master/oslo_config/cfg.py#L2450 Change-Id: I7d017c8f92568c5849fde2a65065970901122620 --- freezer/common/config.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/freezer/common/config.py b/freezer/common/config.py index fb9b9919..a6a9324a 100644 --- a/freezer/common/config.py +++ b/freezer/common/config.py @@ -527,11 +527,9 @@ _COMMON = [ def config(args=[]): CONF.register_opts(_COMMON) CONF.register_cli_opts(_COMMON) - default_conf = None log.register_options(CONF) CONF(args=args, project='freezer', - default_config_files=default_conf, version=FREEZER_VERSION)