Merge "Make HostManager.get_all_host_states() return an iterator"
This commit is contained in:
@@ -41,7 +41,7 @@ class LeastCostTestCase(test.TestCase):
|
|||||||
fakes.mox_host_manager_db_calls(self.mox, ctxt)
|
fakes.mox_host_manager_db_calls(self.mox, ctxt)
|
||||||
self.mox.ReplayAll()
|
self.mox.ReplayAll()
|
||||||
host_states = self.host_manager.get_all_host_states(ctxt,
|
host_states = self.host_manager.get_all_host_states(ctxt,
|
||||||
'compute').values()
|
'compute')
|
||||||
self.mox.VerifyAll()
|
self.mox.VerifyAll()
|
||||||
self.mox.ResetAll()
|
self.mox.ResetAll()
|
||||||
return host_states
|
return host_states
|
||||||
|
|||||||
Reference in New Issue
Block a user