Removed 'default=None' in a batch of modules 2 (#4567)

* removed default=None

* added changelog fragment
This commit is contained in:
Alexei Znamensky 2022-04-24 17:42:36 +12:00 committed by GitHub
commit 3b103f905e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 49 additions and 36 deletions

View file

@ -684,7 +684,7 @@ def main():
choices=['present', 'running', 'absent', 'deleted', 'stopped', 'created', 'restarted', 'rebooted']
),
name=dict(
default=None, type='str',
type='str',
aliases=['alias']
),
brand=dict(
@ -709,7 +709,7 @@ def main():
# Add our 'simple' options to options dict.
for type in properties:
for p in properties[type]:
option = dict(default=None, type=type)
option = dict(type=type)
options[p] = option
module = AnsibleModule(