Merge "Fix all_projects filtering for backups"

This commit is contained in:
Zuul 2019-08-25 10:46:51 +00:00 committed by Gerrit Code Review
commit 75bc6b5a28

View File

@ -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: