lvg: fix default value type, should be str (#57723)

pull/57735/head
Alexey Kamenskiy 6 years ago committed by René Moser
parent 33a26d31fd
commit 793c18506a

@ -0,0 +1,2 @@
bugfixes:
- lvg - Fixed warning shown when using default value for pesize about conversion from int to str.

@ -38,7 +38,7 @@ options:
- The size of the physical extent. pesize must be a power of 2, or multiple of 128KiB.
- Since Ansible 2.6, pesize can be optionally suffixed by a UNIT (k/K/m/M/g/G), default unit is megabyte.
type: str
default: 4
default: "4"
pv_options:
description:
- Additional options to pass to C(pvcreate) when creating the volume group.
@ -143,7 +143,7 @@ def main():
argument_spec=dict(
vg=dict(type='str', required=True),
pvs=dict(type='list'),
pesize=dict(type='str', default=4),
pesize=dict(type='str', default='4'),
pv_options=dict(type='str', default=''),
vg_options=dict(type='str', default=''),
state=dict(type='str', default='present', choices=['absent', 'present']),

Loading…
Cancel
Save