1
0
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:
Konstantin Khorenko
2024-06-11 17:00:23 +03:00
parent e897423493
commit fbc1a5e8d3

View File

@ -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)