Adjust booleans in system modules (#5153)

* Adjust booleans in system modules.

* Fix some IP addresses

Co-authored-by: Sandra McCann <samccann@redhat.com>

Co-authored-by: Sandra McCann <samccann@redhat.com>
This commit is contained in:
Felix Fontein 2022-08-24 19:59:01 +02:00 committed by GitHub
parent bcecf2dcdc
commit be2de15c66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 162 additions and 146 deletions

View file

@ -44,7 +44,7 @@ options:
type: str
pvresize:
description:
- If C(yes), resize the physical volume to the maximum available size.
- If C(true), resize the physical volume to the maximum available size.
type: bool
default: false
version_added: '0.2.0'
@ -60,9 +60,9 @@ options:
default: present
force:
description:
- If C(yes), allows to remove volume group with logical volumes.
- If C(true), allows to remove volume group with logical volumes.
type: bool
default: no
default: false
seealso:
- module: community.general.filesystem
- module: community.general.lvol
@ -102,7 +102,7 @@ EXAMPLES = r'''
community.general.lvg:
vg: resizableVG
pvs: /dev/sda3
pvresize: yes
pvresize: true
'''
import itertools
@ -258,7 +258,7 @@ def main():
else:
module.fail_json(msg="Failed to remove volume group %s" % (vg), rc=rc, err=err)
else:
module.fail_json(msg="Refuse to remove non-empty volume group %s without force=yes" % (vg))
module.fail_json(msg="Refuse to remove non-empty volume group %s without force=true" % (vg))
# resize VG
current_devs = [os.path.realpath(pv['name']) for pv in pvs if pv['vg_name'] == vg]