Skip to content

Commit

Permalink
Merge 3d63bd4 into d33c025
Browse files Browse the repository at this point in the history
  • Loading branch information
PrieJos committed Aug 6, 2020
2 parents d33c025 + 3d63bd4 commit fc4248d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -55,3 +55,5 @@ docs/_build/
# PyBuilder
target/

# pycharm
.idea/
2 changes: 1 addition & 1 deletion pytest_ansible/__init__.py
@@ -1,5 +1,5 @@
"""The pytest-ansible initialization."""

__version__ = "2.2.2"
__version__ = "2.2.3rc0"
__author__ = "James Laska"
__author_email__ = "<jlaska@ansible.com>"
7 changes: 5 additions & 2 deletions pytest_ansible/module_dispatcher/v28.py
Expand Up @@ -34,9 +34,12 @@ def __init__(self, *args, **kwargs):
self.unreachable = {}

def v2_runner_on_failed(self, result, *args, **kwargs):
self.contacted[result._host.get_name()] = result._result
result2 = dict(failed=True)
result2.update(result._result)
self.contacted[result._host.get_name()] = result2

v2_runner_on_ok = v2_runner_on_failed
def v2_runner_on_ok(self, result):
self.contacted[result._host.get_name()] = result._result

def v2_runner_on_unreachable(self, result):
self.unreachable[result._host.get_name()] = result._result
Expand Down

0 comments on commit fc4248d

Please sign in to comment.