diff options
author | Lingxian Kong <anlin.kong@gmail.com> | 2019-08-25 12:17:25 +1200 |
---|---|---|
committer | Lingxian Kong <anlin.kong@gmail.com> | 2019-08-25 12:17:25 +1200 |
commit | 652180aa163c479801a150163a6e58b091f14f4c (patch) | |
tree | 2bbfc935df48d440a9acf1f70e758496ac1bcbf7 /trove/backup | |
parent | c247e4842eb424214da55ca751535d107d87ceab (diff) | |
download | trove-652180aa163c479801a150163a6e58b091f14f4c.tar.gz |
Fix all_projects filtering for backups
Change-Id: Ie0f7bb9fad73cb29084702d1044ae3ed7eb3b8ce
Diffstat (limited to 'trove/backup')
-rw-r--r-- | trove/backup/service.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trove/backup/service.py b/trove/backup/service.py index c410b21e..6e8f3bf7 100644 --- a/trove/backup/service.py +++ b/trove/backup/service.py @@ -14,6 +14,7 @@ # under the License. from oslo_log import log as logging +from oslo_utils import strutils from trove.backup.models import Backup from trove.backup import views @@ -40,7 +41,7 @@ class BackupController(wsgi.Controller): LOG.debug("Listing backups for tenant %s", tenant_id) datastore = req.GET.get('datastore') instance_id = req.GET.get('instance_id') - all_projects = req.GET.get('all_projects', False) + all_projects = strutils.bool_from_string(req.GET.get('all_projects')) context = req.environ[wsgi.CONTEXT_KEY] if all_projects: |