mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
docs(lineinfile): fix typo inserbefore -> insertbefore (#54788)
This commit is contained in:
parent
10c5e26ce8
commit
688409128a
2 changed files with 3 additions and 3 deletions
|
@ -116,7 +116,7 @@ options:
|
|||
firstmatch:
|
||||
description:
|
||||
- Used with C(insertafter) or C(insertbefore).
|
||||
- If set, C(insertafter) and C(inserbefore) find a first line has regular expression matches.
|
||||
- If set, C(insertafter) and C(insertbefore) find a first line has regular expression matches.
|
||||
type: bool
|
||||
default: no
|
||||
version_added: "2.5"
|
||||
|
@ -285,7 +285,7 @@ def present(module, dest, regexp, line, insertafter, insertbefore, create,
|
|||
bre_ins = None
|
||||
|
||||
# index[0] is the line num where regexp has been found
|
||||
# index[1] is the line num where insertafter/inserbefore has been found
|
||||
# index[1] is the line num where insertafter/insertbefore has been found
|
||||
index = [-1, -1]
|
||||
m = None
|
||||
b_line = to_bytes(line, errors='surrogate_or_strict')
|
||||
|
|
|
@ -116,7 +116,7 @@ function Present($path, $regexp, $line, $insertafter, $insertbefore, $create, $b
|
|||
}
|
||||
|
||||
# index[0] is the line num where regexp has been found
|
||||
# index[1] is the line num where insertafter/inserbefore has been found
|
||||
# index[1] is the line num where insertafter/insertbefore has been found
|
||||
$index = -1, -1;
|
||||
$lineno = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue