summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjiaopengju <jiaopengju@cmss.chinamobile.com>2018-11-25 14:08:33 +0800
committerjiaopengju <jiaopengju@cmss.chinamobile.com>2018-11-25 14:08:33 +0800
commitd2655031ae78c621d89ec803e750b1f9814ec952 (patch)
tree289c87481f0833b18a89f55654ec8768d7576439
parent2df8d3400faa5c9a88d084714ed12dbf2cb4bcc7 (diff)
Add all_tenants paramerter for copies API
Notes
Notes (review): Code-Review+2: Jiao Pengju <jiaopengju@cmss.chinamobile.com> Workflow+1: Jiao Pengju <jiaopengju@cmss.chinamobile.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Sun, 25 Nov 2018 13:20:22 +0000 Reviewed-on: https://review.openstack.org/619914 Project: openstack/karbor Branch: refs/heads/master
-rw-r--r--karbor/api/v1/copies.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/karbor/api/v1/copies.py b/karbor/api/v1/copies.py
index 8b779d2..4e62da1 100644
--- a/karbor/api/v1/copies.py
+++ b/karbor/api/v1/copies.py
@@ -89,7 +89,8 @@ class CopiesController(wsgi.Controller):
89 filters = {'plan_id': plan_id} 89 filters = {'plan_id': plan_id}
90 checkpoints = self.protection_api.list_checkpoints( 90 checkpoints = self.protection_api.list_checkpoints(
91 context, provider_id, marker=None, limit=None, 91 context, provider_id, marker=None, limit=None,
92 sort_keys=None, sort_dirs=None, filters=filters, offset=None) 92 sort_keys=None, sort_dirs=None, filters=filters, offset=None,
93 all_tenants=False)
93 94
94 if not checkpoints: 95 if not checkpoints:
95 msg = _("The plan has not been protected.") 96 msg = _("The plan has not been protected.")