rouse: client: Update for host list API change
parent
3b8f033253
commit
cee2f6cba3
|
@ -93,7 +93,7 @@ class Host(host.Host):
|
|||
|
||||
@classmethod
|
||||
def find(cls, rouse, **keywords):
|
||||
for item in rouse.get('/', **keywords):
|
||||
for item in rouse.get('/', **keywords)['hosts']:
|
||||
host = cls.from_dict(item)
|
||||
host.rouse = rouse
|
||||
yield host
|
||||
|
|
Loading…
Reference in New Issue