Skip to content

Commit 12a3130

Browse files
author
Joshua Phillips
committed
Add 'project_id' field to volume resource
Change-Id: Ib2c739cfd63869f7a78e161c33f962846da9c7c0
1 parent 54dc32c commit 12a3130

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

openstack/block_store/v2/volume.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ class Volume(resource2.Resource):
2121
base_path = "/volumes"
2222
service = block_store_service.BlockStoreService()
2323

24-
_query_mapping = resource2.QueryParameters('all_tenants', 'name', 'status')
24+
_query_mapping = resource2.QueryParameters('all_tenants', 'name',
25+
'status', 'project_id')
2526

2627
# capabilities
2728
allow_get = True

openstack/tests/unit/block_store/v2/test_volume.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def test_basic(self):
6969
self.assertDictEqual({"name": "name",
7070
"status": "status",
7171
"all_tenants": "all_tenants",
72+
"project_id": "project_id",
7273
"limit": "limit",
7374
"marker": "marker"},
7475
sot._query_mapping._mapping)

0 commit comments

Comments
 (0)