summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Peck <bpeck@redhat.com>2008-07-14 12:45:34 +0000
committerBill Peck <bpeck@redhat.com>2008-07-14 12:45:34 +0000
commit15e81aa1e6a775abfaa1cc47d7ea4cb8b6b9c330 (patch)
treefc2a0e34b5dae824f891ade2ffee7a7e62c91eb8
parent0acbd89351db0078f075edbf32f9019e3adcd59c (diff)
-rwxr-xr-xTasks/distribution/inventory/push-inventory.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tasks/distribution/inventory/push-inventory.py b/Tasks/distribution/inventory/push-inventory.py
index 7121a1d..e30c684 100755
--- a/Tasks/distribution/inventory/push-inventory.py
+++ b/Tasks/distribution/inventory/push-inventory.py
@@ -62,7 +62,10 @@ def read_inventory():
data['ARCH'] = cpu_info['platform']
data['CPUSPEED'] = cpu_info['speed']
- data['CPUFAMILY'] = cpu_info['model_number']
+ try:
+ data['CPUFAMILY'] = cpu_info['model_number']
+ except:
+ data['CPUFAMILY'] = cpu_info['model_rev']
data['CPUVENDOR'] = cpu_info['type']
data['CPUMODEL'] = cpu_info['model']
data['CPUMODELNUMBER'] = cpu_info['model_ver']