postgresql_user: set type of conn_limit (#50178)

conn_limit type is set to 'int'. This will allow module to compare conn_limit with record value without type casting.

Fixes: #38118

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/50275/head
Abhijeet Kasurde 6 years ago committed by GitHub
parent 4c3064a36f
commit fc6c500b5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,3 @@
---
minor_changes:
- conn_limit type is set to 'int' in postgresql_user module. This will allow module to compare conn_limit with record value without type casting.

@ -135,6 +135,7 @@ options:
description: description:
- Specifies the user connection limit. - Specifies the user connection limit.
version_added: '2.4' version_added: '2.4'
type: int
notes: notes:
- The default authentication assumes that you are either logging in as or - The default authentication assumes that you are either logging in as or
sudo'ing to the postgres account on the host. sudo'ing to the postgres account on the host.
@ -742,7 +743,7 @@ def main():
ssl_mode=dict(default='prefer', choices=[ ssl_mode=dict(default='prefer', choices=[
'disable', 'allow', 'prefer', 'require', 'verify-ca', 'verify-full']), 'disable', 'allow', 'prefer', 'require', 'verify-ca', 'verify-full']),
ssl_rootcert=dict(default=None), ssl_rootcert=dict(default=None),
conn_limit=dict(default=None) conn_limit=dict(type='int', default=None)
)) ))
module = AnsibleModule( module = AnsibleModule(
argument_spec=argument_spec, argument_spec=argument_spec,

Loading…
Cancel
Save