Fix nova fakes for server listing

With python-novaclient 10.2.0 after eff607ccef91d09052d58f6798f68d67404f51ce
server listing is done in multiple requests.

Change-Id: Ib02278fca2a17ce2f26d5e28a5ac0971bd80657a
Closes-Bug: #1766254
This commit is contained in:
rabi 2018-04-23 18:47:33 +05:30
parent b2b3aaa5ba
commit 5abc45755a
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,9 @@ class FakeSessionClient(base_client.SessionClient):
# Servers
#
def get_servers_detail(self, **kw):
if kw.get('marker') == '56789':
return (200, {"servers": []})
return (
200,
{"servers": [{"id": "1234",