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