Fix boolean defaults. (#1343)

This commit is contained in:
Felix Fontein 2020-11-23 12:14:43 +01:00 committed by GitHub
commit a96f90ff94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 34 additions and 14 deletions

View file

@ -35,7 +35,7 @@ options:
required: true
force:
type: bool
default: "false"
default: false
description:
- Applicable only while removing the nodes from the pool. gluster
will refuse to detach a node from the pool if any one of the node
@ -141,7 +141,7 @@ class Peer(object):
def main():
module = AnsibleModule(
argument_spec=dict(
force=dict(type='bool', required=False),
force=dict(type='bool', required=False, default=False),
nodes=dict(type='list', required=True),
state=dict(type='str', choices=['absent', 'present'],
default='present'),

View file

@ -78,6 +78,7 @@ options:
- If brick is being created in the root partition, module will fail.
Set force to true to override this behaviour.
type: bool
default: false
notes:
- Requires cli tools for GlusterFS on servers.
- Will add new bricks, but not remove them.

View file

@ -31,11 +31,13 @@ options:
description:
- Remove licenses that have no controller affiliation in the cluster.
type: bool
default: false
remove_expired:
description:
- Remove licenses that have expired in the cluster.
type: bool
default: false
serial_number:
description: