collection: Change default='no's and 'yes's to default=False and default=True (#556)

* Change default={'no','yes'} to default={False,True}

* Add changelog

* Remove changelog
This commit is contained in:
Amin Vakil 2020-06-22 18:26:35 +04:30 committed by GitHub
commit 650ae65f24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 58 additions and 58 deletions

View file

@ -175,8 +175,8 @@ class Bower(object):
def main():
arg_spec = dict(
name=dict(default=None),
offline=dict(default='no', type='bool'),
production=dict(default='no', type='bool'),
offline=dict(default=False, type='bool'),
production=dict(default=False, type='bool'),
path=dict(required=True, type='path'),
relative_execpath=dict(default=None, required=False, type='path'),
state=dict(default='present', choices=['present', 'absent', 'latest', ]),

View file

@ -128,7 +128,7 @@ def main():
choices=['present', 'latest'],
type='str'),
virtualenv=dict(default=None, required=False),
virtualenv_site_packages=dict(default='no', type='bool'),
virtualenv_site_packages=dict(default=False, type='bool'),
virtualenv_command=dict(default='virtualenv', required=False),
executable=dict(default='easy_install', required=False),
)

View file

@ -238,7 +238,7 @@ def main():
name=dict(default=None, type='str'),
path=dict(default=None, type='path'),
version=dict(default=None, type='str'),
production=dict(default='no', type='bool'),
production=dict(default=False, type='bool'),
executable=dict(default=None, type='path'),
registry=dict(default=None, type='str'),
state=dict(default='present', choices=['present', 'absent', 'latest']),
@ -246,7 +246,7 @@ def main():
unsafe_perm=dict(default=False, type='bool'),
ci=dict(default=False, type='bool'),
)
arg_spec['global'] = dict(default='no', type='bool')
arg_spec['global'] = dict(default=False, type='bool')
module = AnsibleModule(
argument_spec=arg_spec,
supports_check_mode=True

View file

@ -295,13 +295,13 @@ def main():
name=dict(default=None),
path=dict(default=None, type='path'),
version=dict(default=None),
production=dict(default='no', type='bool'),
production=dict(default=False, type='bool'),
executable=dict(default=None, type='path'),
registry=dict(default=None),
state=dict(default='present', choices=['present', 'absent', 'latest']),
ignore_scripts=dict(default=False, type='bool'),
)
arg_spec['global'] = dict(default='no', type='bool')
arg_spec['global'] = dict(default=False, type='bool')
module = AnsibleModule(
argument_spec=arg_spec,
supports_check_mode=True