From 29d491964e8b59d452e668afdcf5f0864b1370fe Mon Sep 17 00:00:00 2001 From: Thomas S Hatch Date: Wed, 15 Apr 2015 19:43:41 -0600 Subject: [PATCH] Add attr_call test function --- salt/modules/test.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/salt/modules/test.py b/salt/modules/test.py index 13d29f5178..fcb987d008 100644 --- a/salt/modules/test.py +++ b/salt/modules/test.py @@ -27,6 +27,19 @@ def missing_func(): return 'foo' +def attr_call(): + ''' + Call grains.items via the attribute + + CLI Example:: + + .. code-block:: bash + + salt '*' test.attr_call + ''' + return __salt__.grains.items() + + def module_report(): ''' Return a dict containing all of the exeution modules with a report on @@ -36,7 +49,7 @@ def module_report(): .. code-block:: bash - salt '*' module_report + salt '*' test.module_report ''' ret = {'functions': [], 'function_attrs': [],