Revert "Revert "Remove deprecated functionality. (#363)""

This reverts commit e6d597b539.
This commit is contained in:
Felix Fontein
2022-07-02 14:28:31 +02:00
parent 6206976dbb
commit bc64aef5ca
5 changed files with 6 additions and 27 deletions
-6
View File
@@ -76,9 +76,6 @@ options:
requirements:
- jsondiff
- pyyaml
notes:
- Return values I(out) and I(err) have been deprecated and will be removed in community.docker 3.0.0. Use I(stdout) and I(stderr) instead.
'''
RETURN = '''
@@ -260,7 +257,6 @@ def main():
if rc != 0:
module.fail_json(msg="docker stack up deploy command failed",
rc=rc,
out=out, err=err, # Deprecated
stdout=out, stderr=err)
before_after_differences = json_diff(before_stack_services,
@@ -294,12 +290,10 @@ def main():
if rc != 0:
module.fail_json(msg="'docker stack down' command failed",
rc=rc,
out=out, err=err, # Deprecated
stdout=out, stderr=err)
else:
module.exit_json(changed=True,
msg=out, rc=rc,
err=err, # Deprecated
stdout=out, stderr=err)
module.exit_json(changed=False)