summaryrefslogtreecommitdiffstats
path: root/func/minion/modules/hardware.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-10-24 15:47:40 -0400
committerMichael DeHaan <mdehaan@redhat.com>2007-10-24 15:47:40 -0400
commit1215af4b5430163ece944b2464f936e1c4278cfd (patch)
treeeb350bfd8414a1c965c57102853a7d0f59b02d3c /func/minion/modules/hardware.py
parentbb56e5bf579267d4bc76883ebddcc7c0f8a8852c (diff)
downloadthird_party-func-1215af4b5430163ece944b2464f936e1c4278cfd.tar.gz
third_party-func-1215af4b5430163ece944b2464f936e1c4278cfd.tar.xz
third_party-func-1215af4b5430163ece944b2464f936e1c4278cfd.zip
Add a new method "inventory" which will be the default method func-inventory will call, so that modules
that have non-constant data (like the process module) won't record their data in func-inventory by default. Only modules that have mostly-static data will have an inventory method, though often this will be aliased to their existing info() method -- but maybe not always.
Diffstat (limited to 'func/minion/modules/hardware.py')
-rwxr-xr-xfunc/minion/modules/hardware.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/func/minion/modules/hardware.py b/func/minion/modules/hardware.py
index 79faf4c..3b22232 100755
--- a/func/minion/modules/hardware.py
+++ b/func/minion/modules/hardware.py
@@ -29,8 +29,9 @@ from modules import func_module
class HardwareModule(func_module.FuncModule):
def __init__(self):
self.methods = {
- "info" : self.info,
- "hal_info" : self.hal_info
+ "info" : self.info,
+ "inventory" : self.info, # for func-inventory
+ "hal_info" : self.hal_info
}
func_module.FuncModule.__init__(self)