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/virt.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'func/minion/modules/virt.py') diff --git a/func/minion/modules/virt.py b/func/minion/modules/virt.py index 0c9acf0..7dc5697 100755 --- a/func/minion/modules/virt.py +++ b/func/minion/modules/virt.py @@ -130,16 +130,17 @@ class Virt(func_module.FuncModule): """ self.methods = { - "install" : self.install, - "shutdown" : self.shutdown, - "destroy" : self.destroy, - "start" : self.create, - "pause" : self.pause, - "unpause" : self.unpause, - "delete" : self.undefine, - "status" : self.get_status, - "info" : self.info, - "list_vms" : self.list_vms, + "install" : self.install, + "shutdown" : self.shutdown, + "destroy" : self.destroy, + "start" : self.create, + "pause" : self.pause, + "unpause" : self.unpause, + "delete" : self.undefine, + "status" : self.get_status, + "info" : self.info, + "inventory" : self.info, # for func-inventory + "list_vms" : self.list_vms, } func_module.FuncModule.__init__(self) -- cgit