mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-21 11:34:15 -07:00
Ensure exit_json returns failed = False
This is required for modules that may return a non-zero `rc` value for a successful run, similar to #24865 for Windows fixing **win_chocolatey**. We also disable the dependency on `rc` value only, even if `failed` was set. Adapted unit and integration tests to the new scheme. Updated raw, shell, script, expect to take `rc` into account.
This commit is contained in:
parent
1f78715848
commit
0e160d5c7e
17 changed files with 68 additions and 56 deletions
|
@ -155,6 +155,7 @@
|
|||
expected:
|
||||
changed: False
|
||||
examined: 5
|
||||
failed: False
|
||||
files:
|
||||
- { isarchive: True,
|
||||
attributes: Archive,
|
||||
|
@ -237,6 +238,7 @@
|
|||
expected:
|
||||
changed: False
|
||||
examined: 11
|
||||
failed: False
|
||||
files:
|
||||
- { isarchive: True,
|
||||
attributes: "Hidden, Archive",
|
||||
|
@ -278,6 +280,7 @@
|
|||
expected:
|
||||
changed: False
|
||||
examined: 5
|
||||
failed: False
|
||||
files:
|
||||
- { isarchive: True,
|
||||
attributes: Archive,
|
||||
|
@ -315,6 +318,7 @@
|
|||
expected:
|
||||
changed: False
|
||||
examined: 8
|
||||
failed: False
|
||||
files:
|
||||
- { isarchive: True,
|
||||
attributes: Archive,
|
||||
|
@ -383,6 +387,7 @@
|
|||
expected:
|
||||
changed: False
|
||||
examined: 10
|
||||
failed: False
|
||||
files:
|
||||
- { isarchive: True,
|
||||
attributes: Archive,
|
||||
|
@ -465,6 +470,7 @@
|
|||
expected:
|
||||
changed: False
|
||||
examined: 2
|
||||
failed: False
|
||||
files:
|
||||
- { isarchive: False,
|
||||
attributes: Directory,
|
||||
|
@ -529,6 +535,7 @@
|
|||
expected:
|
||||
changed: False
|
||||
examined: 5
|
||||
failed: False
|
||||
files:
|
||||
- { isarchive: True,
|
||||
attributes: Archive,
|
||||
|
@ -571,6 +578,7 @@
|
|||
expected:
|
||||
changed: False
|
||||
examined: 5
|
||||
failed: False
|
||||
files:
|
||||
- { isarchive: True,
|
||||
attributes: Archive,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue