diff options
author | makkalot <makkalot@gmail.com> | 2008-08-07 23:22:17 +0300 |
---|---|---|
committer | makkalot <makkalot@gmail.com> | 2008-08-07 23:22:17 +0300 |
commit | 2a22380c72e143370c83b6d2072f84666901a64b (patch) | |
tree | 7aaeeee3645c007d373be5081e9f08533c58c971 | |
parent | 504dffff05602e8dc0254114107b612f5696ade6 (diff) | |
download | func-2a22380c72e143370c83b6d2072f84666901a64b.tar.gz func-2a22380c72e143370c83b6d2072f84666901a64b.tar.xz func-2a22380c72e143370c83b6d2072f84666901a64b.zip |
export the hardware module
-rw-r--r-- | func/minion/modules/hardware.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/func/minion/modules/hardware.py b/func/minion/modules/hardware.py index 46b1821..5a72da4 100644 --- a/func/minion/modules/hardware.py +++ b/func/minion/modules/hardware.py @@ -72,6 +72,32 @@ class HardwareModule(func_module.FuncModule): """ return hw_info(with_devices) + def register_method_args(self): + """ + Implementing the argument getter + """ + + return{ + 'hal_info':{ + 'args':{}, + 'description':'Returns the output of lshal'}, + 'inventory':{ + 'args':{}, + 'description':"The inventory part" + }, + 'info':{ + 'args':{ + 'with_devices':{ + 'type':'boolean', + 'optional':True, + 'default':True, + 'description':'All devices' + } + }, + 'description':"A struct of hardware information" + } + } + # ================================= def hw_info(with_devices=True): |