Update help text for backup compression option

This bugs me every time I look at the sample config file because
it looks like we don't care.

Change-Id: I84990d059dc3ee8edece041b1e4c37b93f9db798
This commit is contained in:
Brian Rosmaita 2021-03-29 17:41:36 -04:00
parent c552e42ebf
commit 5213b4cf30
1 changed files with 9 additions and 5 deletions

View File

@ -51,11 +51,15 @@ backup_opts = [
cfg.StrOpt('backup_compression_algorithm',
default='zlib',
ignore_case=True,
choices=['none', 'off', 'no',
'zlib', 'gzip',
'bz2', 'bzip2',
'zstd'],
help='Compression algorithm ("none" to disable)'),
choices=[('none', 'Do not use compression'),
('off', "Same as 'none'"),
('no', "Same as 'none'"),
('zlib', 'Use the Deflate compression algorithm'),
('gzip', "Same as 'zlib'"),
('bz2', 'Use Burrows-Wheeler transform compression'),
('bzip2', "Same as 'bz2'"),
('zstd', 'Use the Zstandard compression algorithm')],
help="Compression algorithm for backups ('none' to disable)"),
]
CONF = cfg.CONF