From 658588adc3e824750c90f364657fcdb06068abb5 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Wed, 29 Mar 2017 11:36:41 -0400 Subject: [PATCH] Backup: Add choices to compression algorithm option This allows detection of invalid configuration at startup time rather than during operation. Change-Id: I3f471d1b3d73027c5bb2d041e2893a780c38692b --- cinder/backup/chunkeddriver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cinder/backup/chunkeddriver.py b/cinder/backup/chunkeddriver.py index 5dc64a30aea..c6692f36960 100644 --- a/cinder/backup/chunkeddriver.py +++ b/cinder/backup/chunkeddriver.py @@ -46,6 +46,9 @@ LOG = logging.getLogger(__name__) chunkedbackup_service_opts = [ cfg.StrOpt('backup_compression_algorithm', default='zlib', + choices=['none', 'off', 'no', + 'zlib', 'gzip', + 'bz2', 'bzip2'], help='Compression algorithm (None to disable)'), ]