lvg: fix default value type, should be str (#57723)
(cherry picked from commit 793c18506a
)
This commit is contained in:
parent
0521b30515
commit
15880a0c23
2 changed files with 4 additions and 2 deletions
|
@ -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…
Reference in a new issue