Fixed parameter names

reviewable/pr18780/r1
Matt Hite 11 years ago
parent ec9807b215
commit cc2db3001f

@ -61,13 +61,13 @@ options:
default: present default: present
choices: ['present', 'absent'] choices: ['present', 'absent']
aliases: [] aliases: []
name: pool:
description: description:
- Pool name. This pool must exist. - Pool name. This pool must exist.
required: true required: true
default: null default: null
choices: [] choices: []
aliases: ['pool'] aliases: []
partition: partition:
description: description:
- Partition - Partition
@ -81,7 +81,7 @@ options:
required: true required: true
default: null default: null
choices: [] choices: []
aliases: ['address'] aliases: ['address', 'name']
port: port:
description: description:
- "Pool member port" - "Pool member port"
@ -91,28 +91,28 @@ options:
aliases: [] aliases: []
connection_limit: connection_limit:
description: description:
- Sets the connection limit for a set of pool member. Setting this to 0 disables the limit. - Pool member connection limit. Setting this to 0 disables the limit.
required: false required: false
default: null default: null
choices: [] choices: []
aliases: [] aliases: []
description: description:
description: description:
- Sets the description for a pool member. This is an arbitrary field which can be used for any purpose. - Pool member description
required: false required: false
default: null default: null
choices: [] choices: []
aliases: [] aliases: []
rate_limit: rate_limit:
description: description:
- Sets the rate limit for a pool member. This value should be a positive integer representing connections-per-second. Setting this to 0 disables the limit. - Pool member rate limit (connections-per-second). Setting this to 0 disables the limit.
required: false required: false
default: null default: null
choices: [] choices: []
aliases: [] aliases: []
ratio: ratio:
description: description:
- Sets the ratio weight for a pool member. Valid values range from 1 through 100. New pool members -- unless overriden with this value -- default to 1. - Pool member ratio weight. Valid values range from 1 through 100. New pool members -- unless overriden with this value -- default to 1.
required: false required: false
default: null default: null
choices: [] choices: []
@ -238,9 +238,9 @@ def main():
user = dict(type='str', required=True), user = dict(type='str', required=True),
password = dict(type='str', required=True), password = dict(type='str', required=True),
state = dict(type='str', default='present', choices=['present', 'absent']), state = dict(type='str', default='present', choices=['present', 'absent']),
name = dict(type='str', required=True, aliases=['pool']), pool = dict(type='str', required=True),
partition = dict(type='str', default='Common'), partition = dict(type='str', default='Common'),
host = dict(type='str', required=True, aliases=['address']), host = dict(type='str', required=True, aliases=['address', 'name']),
port = dict(type='int', required=True), port = dict(type='int', required=True),
connection_limit = dict(type='int'), connection_limit = dict(type='int'),
description = dict(type='str'), description = dict(type='str'),
@ -257,9 +257,8 @@ def main():
user = module.params['user'] user = module.params['user']
password = module.params['password'] password = module.params['password']
state = module.params['state'] state = module.params['state']
name = module.params['name']
partition = module.params['partition'] partition = module.params['partition']
pool = "/%s/%s" % (partition, name) pool = "/%s/%s" % (partition, module.params['pool'])
connection_limit = module.params['connection_limit'] connection_limit = module.params['connection_limit']
description = module.params['description'] description = module.params['description']
rate_limit = module.params['rate_limit'] rate_limit = module.params['rate_limit']

Loading…
Cancel
Save