Revision fac489a5 lib/hypervisor/hv_fake.py
b/lib/hypervisor/hv_fake.py | ||
---|---|---|
205 | 205 |
raise errors.HypervisorError("Failed to balloon memory for %s: %s" % |
206 | 206 |
(instance.name, utils.ErrnoOrStr(err))) |
207 | 207 |
|
208 |
def GetNodeInfo(self): |
|
208 |
def GetNodeInfo(self, hvparams=None):
|
|
209 | 209 |
"""Return information about the node. |
210 | 210 |
|
211 | 211 |
This is just a wrapper over the base GetLinuxNodeInfo method. |
212 | 212 |
|
213 |
@type hvparams: dict of strings |
|
214 |
@param hvparams: hypervisor parameters, not used in this class |
|
215 |
|
|
213 | 216 |
@return: a dict with the following keys (values in MiB): |
214 | 217 |
- memory_total: the total memory size on the node |
215 | 218 |
- memory_free: the available memory on the node for instances |
Also available in: Unified diff