summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-08-08 12:47:52 +0300
committermakkalot <makkalot@gmail.com>2008-08-08 12:47:52 +0300
commita35bf3cdb7070c3c5c696cb9465d530a23a1dd2c (patch)
tree3a2622fa535dd4082a8d29d1a07017edeb8956e5
parent5f2bc088a77b19902e741caa9baded30703dc99a (diff)
downloadfunc-a35bf3cdb7070c3c5c696cb9465d530a23a1dd2c.tar.gz
func-a35bf3cdb7070c3c5c696cb9465d530a23a1dd2c.tar.xz
func-a35bf3cdb7070c3c5c696cb9465d530a23a1dd2c.zip
export smart minion module
-rw-r--r--func/minion/modules/smart.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/func/minion/modules/smart.py b/func/minion/modules/smart.py
index f410f09..e8e4844 100644
--- a/func/minion/modules/smart.py
+++ b/func/minion/modules/smart.py
@@ -45,3 +45,22 @@ class SmartModule(func_module.FuncModule):
results.append(x)
return (cmd.returncode, results)
+
+ def register_method_args(self):
+ """
+ Implementing method argument getter
+ """
+
+ return {
+ 'info':{
+ 'args':{
+ 'flags':{
+ 'type':'string',
+ 'optional':True,
+ 'default':'-q onecheck',
+ 'description':"Flags for smart command"
+ }
+ },
+ 'description':"Grabs status from SMART to see if your hard drives are ok."
+ }
+ }