From 23b59e6f809d2007d22bc91c72ba64611299c7b1 Mon Sep 17 00:00:00 2001 From: Sean McGinnis Date: Wed, 9 May 2018 18:45:15 +0000 Subject: [PATCH] Add descriptions for auth_strategy choices Starting with oslo.config 5.2.0, provided config choices can include a description in the generated config sample if one is provided. Without a description, it states "No description provided". This adds descriptions to the auth_strategy config option choices for better clarity. Change-Id: I39bdefbef1200aaeb029d7aa40389b02b4cdce72 --- cinder/common/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cinder/common/config.py b/cinder/common/config.py index 028f2fef306..9b59760d506 100644 --- a/cinder/common/config.py +++ b/cinder/common/config.py @@ -155,7 +155,8 @@ global_opts = [ help='The full class name of the volume backup API class'), cfg.StrOpt('auth_strategy', default='keystone', - choices=['noauth', 'keystone'], + choices=[('noauth', 'Do not perform authentication'), + ('keystone', 'Authenticate using keystone')], help='The strategy to use for auth. Supports noauth or ' 'keystone.'), cfg.ListOpt('enabled_backends',