summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexei Znamensky <103110+russoz@users.noreply.github.com>2024-10-02 15:53:58 +0200
committerGitHub <noreply@github.com>2024-10-02 15:53:58 +0200
commitbebc192c3e5dee7a55a121affca63434a27997c3 (patch)
treeea755597a0b9f76c9157cbb2ea7cefdd556e6fa2
parentcron: return stdout and rc for cron command (#83290) (diff)
downloadansible-bebc192c3e5dee7a55a121affca63434a27997c3.tar.xz
ansible-bebc192c3e5dee7a55a121affca63434a27997c3.zip
remove one ignore clause for module copy (#83643)
--------- Co-authored-by: flowerysong <junk+github@flowerysong.com>
-rw-r--r--changelogs/fragments/83643-fix-sanity-ignore-for-copy.yml3
-rw-r--r--lib/ansible/modules/copy.py3
-rw-r--r--test/sanity/ignore.txt1
3 files changed, 4 insertions, 3 deletions
diff --git a/changelogs/fragments/83643-fix-sanity-ignore-for-copy.yml b/changelogs/fragments/83643-fix-sanity-ignore-for-copy.yml
new file mode 100644
index 0000000000..07d6312cb4
--- /dev/null
+++ b/changelogs/fragments/83643-fix-sanity-ignore-for-copy.yml
@@ -0,0 +1,3 @@
+minor_changes:
+ - copy - parameter ``local_follow`` was incorrectly documented as having default value ``True`` (https://github.com/ansible/ansible/pull/83643).
+ - copy - fix sanity test failures (https://github.com/ansible/ansible/pull/83643).
diff --git a/lib/ansible/modules/copy.py b/lib/ansible/modules/copy.py
index 0a1dc7f771..bb9ea0493d 100644
--- a/lib/ansible/modules/copy.py
+++ b/lib/ansible/modules/copy.py
@@ -109,7 +109,6 @@ options:
description:
- This flag indicates that filesystem links in the source tree, if they exist, should be followed.
type: bool
- default: yes
version_added: '2.4'
checksum:
description:
@@ -516,7 +515,7 @@ def main():
force=dict(type='bool', default=True),
validate=dict(type='str'),
directory_mode=dict(type='raw'),
- remote_src=dict(type='bool'),
+ remote_src=dict(type='bool', default=False),
local_follow=dict(type='bool'),
checksum=dict(type='str'),
follow=dict(type='bool', default=False),
diff --git a/test/sanity/ignore.txt b/test/sanity/ignore.txt
index 1526641f9d..c252426ddb 100644
--- a/test/sanity/ignore.txt
+++ b/test/sanity/ignore.txt
@@ -13,7 +13,6 @@ lib/ansible/modules/command.py validate-modules:doc-default-does-not-match-spec
lib/ansible/modules/command.py validate-modules:doc-missing-type
lib/ansible/modules/command.py validate-modules:nonexistent-parameter-documented
lib/ansible/modules/command.py validate-modules:undocumented-parameter
-lib/ansible/modules/copy.py validate-modules:doc-default-does-not-match-spec
lib/ansible/modules/copy.py validate-modules:nonexistent-parameter-documented
lib/ansible/modules/copy.py validate-modules:undocumented-parameter
lib/ansible/modules/dnf.py validate-modules:parameter-invalid