From 1215af4b5430163ece944b2464f936e1c4278cfd Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Wed, 24 Oct 2007 15:47:40 -0400 Subject: 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. --- func/minion/modules/hardware.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'func/minion/modules/hardware.py') 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) -- cgit