Fix boolean defaults. (#1343) (#1358)

(cherry picked from commit a96f90ff94)

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
patchback[bot]
2020-11-23 12:29:14 +01:00
committed by GitHub
parent 73d573b915
commit 247da9890b
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'),