diff options
author | tedder <ted.timmons@stansonhealth.com> | 2015-03-30 15:51:54 -0700 |
---|---|---|
committer | tedder <ted.timmons@stansonhealth.com> | 2015-03-30 15:51:54 -0700 |
commit | bffd137edd8cd3a57de8d7fa8cd4de459087d8ff (patch) | |
tree | 4a2868e43c1a415f6212a2e3c368ad65428ae4ae | |
parent | 472331a53b168a6c7e59680529fc56fb77bdbec8 (diff) | |
download | ansible-modules-core-bffd137edd8cd3a57de8d7fa8cd4de459087d8ff.tar.gz |
code review fixes per #957
-rw-r--r-- | database/postgresql/postgresql_user.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/database/postgresql/postgresql_user.py b/database/postgresql/postgresql_user.py index d0d7c2cb..7558cb37 100644 --- a/database/postgresql/postgresql_user.py +++ b/database/postgresql/postgresql_user.py @@ -117,8 +117,9 @@ options: description: - if C(yes), don't inspect database for password changes. Effective when C(pg_authid) is not accessible (such as AWS RDS). Otherwise, make password changes as necessary. required: false - default: 'yes' + default: 'no' choices: [ "yes", "no" ] + version_added: '2.0' notes: - The default authentication assumes that you are either logging in as or sudo'ing to the postgres account on the host. @@ -492,7 +493,7 @@ def main(): module.fail_json(msg="privileges require a database to be specified") privs = parse_privs(module.params["priv"], db) port = module.params["port"] - no_password_changes = module.params.get("no_password_changes", False) + no_password_changes = module.params["no_password_changes"] try: role_attr_flags = parse_role_attrs(module.params["role_attr_flags"]) except InvalidFlagsError, e: |