ceph_volume: make state not required so I can provide a default

I want a default value of 'present' for state, so it can not
be made required. Othewise it'll throw a 'Module alias error'
from ansible.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
pull/2233/merge
Andrew Schoen 2018-03-14 11:49:48 -05:00 committed by Sébastien Han
parent 9f469e2c5a
commit a9b4c01b7c
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ def run_module():
module_args = dict(
cluster=dict(type='str', required=False, default='ceph'),
objectstore=dict(type='str', required=False, choices=['bluestore', 'filestore']),
state=dict(type='str', required=True, choices=['present', 'absent'], default='present'),
state=dict(type='str', required=False, choices=['present', 'absent'], default='present'),
data=dict(type='str', required=True),
data_vg=dict(type='str', required=False),
journal=dict(type='str', required=False),