diff options
author | makkalot <makkalot@gmail.com> | 2008-08-12 22:26:10 +0300 |
---|---|---|
committer | makkalot <makkalot@gmail.com> | 2008-08-12 22:26:10 +0300 |
commit | 59ac0528622057d9ca9cdffccf907427d4083680 (patch) | |
tree | 0ff14702172bdf9f203b7ac0632b5bbc16ad19db /func/minion | |
parent | 065998c6c51804abd4faf59400c84e8a0aaebea3 (diff) | |
download | func-59ac0528622057d9ca9cdffccf907427d4083680.tar.gz func-59ac0528622057d9ca9cdffccf907427d4083680.tar.xz func-59ac0528622057d9ca9cdffccf907427d4083680.zip |
export overlord module
Diffstat (limited to 'func/minion')
-rw-r--r-- | func/minion/modules/overlord.py | 18 |
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" + } + } |