diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-12-17 13:42:31 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-12-17 13:42:31 -0500 |
commit | 9415533b40ce464700702cea5a72e3d32c8374e5 (patch) | |
tree | 7760a2ae55a446f8ae725e1cec966ce2f321b7b1 /func | |
parent | 3b4404180d0a12741ba53a5213788cd36ed526b4 (diff) | |
download | func-9415533b40ce464700702cea5a72e3d32c8374e5.tar.gz func-9415533b40ce464700702cea5a72e3d32c8374e5.tar.xz func-9415533b40ce464700702cea5a72e3d32c8374e5.zip |
Remove bogomips from inventory stats as it is not constant.
Diffstat (limited to 'func')
-rwxr-xr-x | func/minion/modules/hardware.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/func/minion/modules/hardware.py b/func/minion/modules/hardware.py index 3b22232..6c44b39 100755 --- a/func/minion/modules/hardware.py +++ b/func/minion/modules/hardware.py @@ -30,7 +30,7 @@ class HardwareModule(func_module.FuncModule): def __init__(self): self.methods = { "info" : self.info, - "inventory" : self.info, # for func-inventory + "inventory" : self.inventory, # for func-inventory "hal_info" : self.hal_info } func_module.FuncModule.__init__(self) @@ -61,6 +61,13 @@ class HardwareModule(func_module.FuncModule): return results + def inventory(self): + data = hw_info(with_devices=True) + # remove bogomips because it keeps changing for laptops + # and makes inventory tracking noisy + if data.has_key("bogomips"): + del data["bogomips"] + return data def info(self,with_devices=True): """ |