rouse: client: Update for host list API change
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user