summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakkalot <makkalot@gmail.com>2008-08-12 22:26:10 +0300
committermakkalot <makkalot@gmail.com>2008-08-12 22:26:10 +0300
commit59ac0528622057d9ca9cdffccf907427d4083680 (patch)
tree0ff14702172bdf9f203b7ac0632b5bbc16ad19db
parent065998c6c51804abd4faf59400c84e8a0aaebea3 (diff)
downloadfunc-59ac0528622057d9ca9cdffccf907427d4083680.tar.gz
func-59ac0528622057d9ca9cdffccf907427d4083680.tar.xz
func-59ac0528622057d9ca9cdffccf907427d4083680.zip
export overlord module
-rw-r--r--func/minion/modules/overlord.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/func/minion/modules/overlord.py b/func/minion/modules/overlord.py
index 743c672..7195019 100644
--- a/func/minion/modules/overlord.py
+++ b/func/minion/modules/overlord.py
@@ -45,5 +45,23 @@ class OverlordModule(func_module.FuncModule):
else:
maphash[current_minion] = {}
return maphash
+
+ def register_method_args(self):
+ """
+ Export overlord
+ """
+ return {
+ 'map_minions':{
+ 'args':{
+ 'get_only_alive':{
+ 'type':'boolean',
+ 'optional':True,
+ 'default':True,
+ 'description':"Get only online ones"
+ }
+ },
+ 'description':"Builds a recursive map of the minions currently assigned to this minion overlord"
+ }
+ }