Fix missing of unit in HostState.__repr__()
Unit of RAM and Disk size is missing in HostState.__repr__(), see[1] [1]https://github.com/openstack/nova/blob/13.0.0.0b2/nova/scheduler/host_manager.py#L311 Change-Id: Ibb9a06a0eaa112c3a575080b0775cc2fd97d53cc
This commit is contained in:
parent
bac15df646
commit
d99594a336
@ -310,9 +310,13 @@ class HostState(object):
|
|||||||
self.num_io_ops += 1
|
self.num_io_ops += 1
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return ("(%s, %s) ram:%s disk:%s io_ops:%s instances:%s" %
|
return ("(%(host)s, %(node)s) ram: %(free_ram)sMB "
|
||||||
(self.host, self.nodename, self.free_ram_mb, self.free_disk_mb,
|
"disk: %(free_disk)sMB io_ops: %(num_io_ops)s "
|
||||||
self.num_io_ops, self.num_instances))
|
"instances: %(num_instances)s" %
|
||||||
|
{'host': self.host, 'node': self.nodename,
|
||||||
|
'free_ram': self.free_ram_mb, 'free_disk': self.free_disk_mb,
|
||||||
|
'num_io_ops': self.num_io_ops,
|
||||||
|
'num_instances': self.num_instances})
|
||||||
|
|
||||||
|
|
||||||
class HostManager(object):
|
class HostManager(object):
|
||||||
|
Loading…
Reference in New Issue
Block a user