From 652180aa163c479801a150163a6e58b091f14f4c Mon Sep 17 00:00:00 2001 From: Lingxian Kong Date: Sun, 25 Aug 2019 12:17:25 +1200 Subject: [PATCH] Fix all_projects filtering for backups Change-Id: Ie0f7bb9fad73cb29084702d1044ae3ed7eb3b8ce --- trove/backup/service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trove/backup/service.py b/trove/backup/service.py index c410b21eb5..6e8f3bf703 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: