defghi*: style adjustments (#9532)

* defghi*: style adjustments

* Apply suggestions from code review

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Alexei Znamensky 2025-01-07 18:30:03 +13:00 committed by GitHub
commit 8cef0ee551
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 69 additions and 73 deletions

View file

@ -33,8 +33,8 @@ attributes:
options:
path:
description:
- The original and absolute path of the file to be diverted or undiverted. This path is unique, in other words it is not possible
to get two diversions for the same O(path).
- The original and absolute path of the file to be diverted or undiverted. This path is unique, in other words it is
not possible to get two diversions for the same O(path).
required: true
type: path
state:
@ -69,8 +69,8 @@ options:
default: false
force:
description:
- When O(rename=true) and O(force=true), renaming is performed even if the target of the renaming exists, in other words the existing
contents of the file at this location will be lost.
- When O(rename=true) and O(force=true), renaming is performed even if the target of the renaming exists, in other words
the existing contents of the file at this location will be lost.
- This parameter is ignored when O(rename=false).
type: bool
default: false
@ -132,13 +132,7 @@ diversion:
state:
description: The state of the diversion.
type: str
sample:
{
"divert": "/etc/foobarrc.distrib",
"holder": "LOCAL",
"path": "/etc/foobarrc",
"state": "present"
}
sample: {"divert": "/etc/foobarrc.distrib", "holder": "LOCAL", "path": "/etc/foobarrc", "state": "present"}
"""