Revision d0c8c01d lib/hypervisor/hv_fake.py

b/lib/hypervisor/hv_fake.py
200 200
    result = self.GetLinuxNodeInfo()
201 201
    # substract running instances
202 202
    all_instances = self.GetAllInstancesInfo()
203
    result['memory_free'] -= min(result['memory_free'],
203
    result["memory_free"] -= min(result["memory_free"],
204 204
                                 sum([row[2] for row in all_instances]))
205 205
    return result
206 206

  

Also available in: Unified diff