File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -31,25 +31,20 @@ def __init__(self):
31
31
32
32
def v2_runner_on_ok (self , result ):
33
33
"""
34
- Collect test results for all tests executed if module is junos_jsnapy
34
+ Collect test results for all tests executed if action is snapcheck or check
35
35
"""
36
36
37
37
## Extract module name
38
- module_name = ''
39
38
module_args = {}
40
39
if 'invocation' in result ._result :
41
- if 'module_name' in result ._result ['invocation' ]:
42
- module_name = result ._result ['invocation' ]['module_name' ]
40
+ if 'module_args' in result ._result ['invocation' ]:
43
41
module_args = result ._result ['invocation' ]['module_args' ]
44
42
45
43
## Check if dic return has all valid information
46
- if module_name == '' or module_args == {}:
47
- return None
48
- elif 'action' not in module_args :
44
+ if 'action' not in module_args :
49
45
return None
50
46
51
- if module_name == 'junos_jsnapy' and \
52
- ( module_args ['action' ] == 'snapcheck' or module_args ['action' ] == 'check' ):
47
+ if module_args ['action' ] == 'snapcheck' or module_args ['action' ] == 'check' :
53
48
54
49
## Check if dict entry already exist for this host
55
50
host = result ._host .name
You can’t perform that action at this time.
0 commit comments