Add 'project_id' to Server query parameters

This allow to list servers filtered by project.

Change-Id: I0c169b5d47e645585855d953a9dfa33bf87de894
Closes-bug: #1680512
This commit is contained in:
Valery Tschopp
2017-04-06 17:43:40 +02:00
parent 5bc3431d31
commit a0b4c49f43
2 changed files with 2 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ class Server(resource2.Resource, metadata.MetadataMixin):
"status", "host", "all_tenants",
"sort_key", "sort_dir",
"reservation_id", "tags",
"project_id",
tags_any="tags-any",
not_tags="not-tags",
not_tags_any="not-tags-any",

View File

@@ -91,6 +91,7 @@ class TestServer(testtools.TestCase):
"sort_key": "sort_key",
"sort_dir": "sort_dir",
"reservation_id": "reservation_id",
"project_id": "project_id",
"tags": "tags",
"tags_any": "tags-any",
"not_tags": "not-tags",