summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Callaghan <dcallagh@redhat.com>2011-05-10 10:29:19 +1000
committerDan Callaghan <dcallagh@redhat.com>2011-05-10 10:29:19 +1000
commit8c116632e560c3aba289f522310e9b8127201963 (patch)
treeca2b95d17d583a8e2ec883d03235c1b2b76c3008
parentcc932fb5671ca2438581e30d5977a7169cb33b1b (diff)
/distribution/inventory: fix Numa info when not supplied by smoltbeaker-distribution-inventory-1_1-48
-rwxr-xr-xTasks/distribution/inventory/pushInventory.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tasks/distribution/inventory/pushInventory.py b/Tasks/distribution/inventory/pushInventory.py
index 7f33898..05ee19f 100755
--- a/Tasks/distribution/inventory/pushInventory.py
+++ b/Tasks/distribution/inventory/pushInventory.py
@@ -119,7 +119,9 @@ def read_inventory():
if hasattr(profile.host, 'numaNodes'):
data['Numa'] = {'nodes': profile.host.numaNodes}
else:
- data['Numa'] = len(glob.glob('/sys/devices/system/node/node*')) #: number of NUMA nodes in the system, or 0 if not supported
+ data['Numa'] = {
+ 'nodes': len(glob.glob('/sys/devices/system/node/node*')), #: number of NUMA nodes in the system, or 0 if not supported
+ }
for VendorID, DeviceID, SubsysVendorID, SubsysDeviceID, Bus, Driver, Type, Description in profile.deviceIter():
device = dict ( vendorID = "%04x" % (VendorID and VendorID or 0),