mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-03 08:21:58 +03:00
examples/nodestat: Show memory pinning information again
Resurrect the logic after it has been occasionally broken during fixing
the syntax complains from python.
Fixes: c588ba9
("examples/nodestat: Fix None comparison")
Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
This commit is contained in:
@ -90,6 +90,6 @@ for dom, v in domsStrictCfg.items():
|
||||
if k == "memory":
|
||||
continue
|
||||
toPrint = "\tNode %s:\t%d MiB" % (k, node["size"] // 1024)
|
||||
if node["pin"] is not None and node["pin"] == "":
|
||||
if node["pin"] is not None and node["pin"] != "":
|
||||
toPrint = toPrint + " nodes %s" % node["pin"]
|
||||
print(toPrint)
|
||||
|
Reference in New Issue
Block a user