Add choices to backup_swift_auth

Looking at the sample configuration there is no way to tell what are the
valid options for the "backup_swift_auth" configuration option.

This patch adds to the parameter's definition the list of available
options so it's easier for admins to tell what values are supported.

TrivialFix

Change-Id: I177e8245f9a2af4c9b10f8ce57488a3c12036308
This commit is contained in:
Gorka Eguileor 2017-07-26 14:02:28 +02:00
parent b1de9e8ce4
commit 9d222465e4

View File

@ -78,7 +78,8 @@ swiftbackup_service_opts = [
'Only used if backup_swift_auth_url is unset'),
cfg.StrOpt('backup_swift_auth',
default='per_user',
help='Swift authentication mechanism'),
choices=['per_user', 'single_user'],
help='Swift authentication mechanism.'),
cfg.StrOpt('backup_swift_auth_version',
default='1',
help='Swift authentication version. Specify "1" for auth 1.0'