rouse: client: Update for host list API change

This commit is contained in:
2016-01-03 17:14:53 -06:00
parent 3b8f033253
commit cee2f6cba3

View File

@@ -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