From 6e4a5acfbd54f6e7762919ad4aab68cd00fe53c7 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 4 Jan 2024 14:29:04 -0500 Subject: [PATCH] lineinfile, remove incorrect/unused 'others' option (#82436) * move incorrect, unused 'others' option this was to document 'file' options are usable .. but we already import the file fragment to document those options. * removed now bad ignore --- lib/ansible/modules/lineinfile.py | 4 ---- test/sanity/ignore.txt | 1 - 2 files changed, 5 deletions(-) diff --git a/lib/ansible/modules/lineinfile.py b/lib/ansible/modules/lineinfile.py index 34569df8ece..9e9fdd9b8ef 100644 --- a/lib/ansible/modules/lineinfile.py +++ b/lib/ansible/modules/lineinfile.py @@ -126,10 +126,6 @@ options: type: bool default: no version_added: "2.5" - others: - description: - - All arguments accepted by the M(ansible.builtin.file) module also work here. - type: str extends_documentation_fragment: - action_common_attributes - action_common_attributes.files diff --git a/test/sanity/ignore.txt b/test/sanity/ignore.txt index c4339bcdd54..57730176bfa 100644 --- a/test/sanity/ignore.txt +++ b/test/sanity/ignore.txt @@ -37,7 +37,6 @@ lib/ansible/modules/git.py use-argspec-type-path lib/ansible/modules/git.py validate-modules:doc-required-mismatch lib/ansible/modules/lineinfile.py validate-modules:doc-choices-do-not-match-spec lib/ansible/modules/lineinfile.py validate-modules:doc-default-does-not-match-spec -lib/ansible/modules/lineinfile.py validate-modules:nonexistent-parameter-documented lib/ansible/modules/package_facts.py validate-modules:doc-choices-do-not-match-spec lib/ansible/modules/replace.py validate-modules:nonexistent-parameter-documented lib/ansible/modules/replace.py pylint:used-before-assignment # false positive detection by pylint