From 3332709472970093e33b0f2ce171a30463cb6267 Mon Sep 17 00:00:00 2001 From: Luong Anh Tuan Date: Tue, 27 Sep 2016 10:59:06 +0700 Subject: [PATCH] TrivialFix: Remove default=None when set value in Config By default oslo.cfg sets the default values as None [1], There is no need to explicitly do this. [1] https://github.com/openstack/oslo.config/blob/master/oslo_config/cfg.py#L829 Change-Id: If51508b034a78cb4b881e7cb9a77cd1d347c8e1e --- ironic_inspector/conf.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/ironic_inspector/conf.py b/ironic_inspector/conf.py index a2b602ccb..efef8ba85 100644 --- a/ironic_inspector/conf.py +++ b/ironic_inspector/conf.py @@ -108,7 +108,6 @@ PROCESSING_OPTS = [ '"ramdisk_logs_dir" option being set).'), deprecated_group='discoverd'), cfg.StrOpt('node_not_found_hook', - default=None, help=_('The name of the hook to run when inspector receives ' 'inspection information from a node it isn\'t already ' 'aware of. This hook is ignored by default.')), @@ -118,7 +117,6 @@ PROCESSING_OPTS = [ help=_('Method for storing introspection data. If set to \'none' '\', introspection data will not be stored.')), cfg.StrOpt('store_data_location', - default=None, help=_('Name of the key to store the location of stored data ' 'in the extra column of the Ironic database.')), cfg.BoolOpt('disk_partitioning_spacing', @@ -170,7 +168,6 @@ SERVICE_OPTS = [ 'API. Either "noauth" or "keystone" are currently valid ' 'options. "noauth" will disable all authentication.')), cfg.BoolOpt('authenticate', - default=None, help=_('DEPRECATED: use auth_strategy.'), deprecated_group='discoverd', deprecated_for_removal=True),