mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add ability to use tagged functions in the same set
This commit is contained in:
parent
81695a9f3c
commit
74689e3462
1 changed files with 3 additions and 1 deletions
|
@ -262,6 +262,7 @@ def run(**kwargs):
|
|||
missing = []
|
||||
tests = []
|
||||
for func in functions:
|
||||
func = func.split(':')[0]
|
||||
if func not in __salt__:
|
||||
missing.append(func)
|
||||
elif __opts__['test']:
|
||||
|
@ -284,8 +285,9 @@ def run(**kwargs):
|
|||
failures = []
|
||||
success = []
|
||||
for func in functions:
|
||||
_func = func.split(':')[0]
|
||||
try:
|
||||
func_ret = _call_function(func, returner=kwargs.get('returner'),
|
||||
func_ret = _call_function(_func, returner=kwargs.get('returner'),
|
||||
func_args=kwargs.get(func))
|
||||
if not _get_result(func_ret, ret['changes'].get('ret', {})):
|
||||
if isinstance(func_ret, dict):
|
||||
|
|
Loading…
Add table
Reference in a new issue