mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-05-07 05:43:15 +00:00
Dropped default module options
Removed default=None, type='str' and required=False from all module's
argument_specs with
sed -i \
-e 's/default=None, //g' \
-e 's/default=None,//g' \
-e 's/default=None//g' \
-e "s/type='str', //g" \
-e "s/type='str',//g" \
-e "s/type='str'//g" \
-e 's/required=False, //g' \
-e 's/required=False,//g' \
-e 's/required=False//g' \
plugins/modules/*.py plugins/module_utils/*.py
and manually cleaned the results because those options values are the
default in Ansible.
Ref.: https://docs.ansible.com/ansible/latest/dev_guide/developing_program_flow_modules.html#argument-spec
Change-Id: Icbc3bb84269d3b8205fac259300902ebdaf6a3ae
This commit is contained in:
@@ -87,8 +87,8 @@ class VolumeBackupInfoModule(OpenStackModule):
|
||||
module_min_sdk_version = '0.49.0'
|
||||
|
||||
argument_spec = dict(
|
||||
name=dict(required=False, type='str'),
|
||||
volume=dict(required=False, type='str')
|
||||
name=dict(),
|
||||
volume=dict()
|
||||
)
|
||||
module_kwargs = dict(
|
||||
supports_check_mode=True
|
||||
|
||||
Reference in New Issue
Block a user