PEP 8 W291 whitespace cleanup.

This commit is contained in:
Matt Clay
2017-01-27 15:20:31 -08:00
parent 95789f3949
commit d913f69ba1
166 changed files with 493 additions and 565 deletions

View File

@@ -49,7 +49,7 @@ options:
url:
description:
- Set exact URL to download the plugin from.
For local file, prefix its absolute path with file://
For local file, prefix its absolute path with file://
required: False
default: None
timeout:

View File

@@ -80,7 +80,7 @@ notes:
requirements:
- python >= 2.7
- pymssql
author: Vedit Firat Arig
author: Vedit Firat Arig
'''
EXAMPLES = '''

View File

@@ -34,7 +34,7 @@ short_description: Manage MySQL replication
description:
- Manages MySQL server replication, slave, master status get and change master host.
version_added: "1.3"
author: "Balazs Pocze (@banyek)"
author: "Balazs Pocze (@banyek)"
options:
mode:
description:

View File

@@ -143,7 +143,7 @@ def main():
state = module.params["state"]
changed = False
# To use defaults values, keyword arguments must be absent, so
# To use defaults values, keyword arguments must be absent, so
# check which values are empty and don't include in the **kw
# dictionary
params_map = {

View File

@@ -26,17 +26,17 @@ DOCUMENTATION = '''
module: postgresql_lang
short_description: Adds, removes or changes procedural languages with a PostgreSQL database.
description:
- Adds, removes or changes procedural languages with a PostgreSQL database.
- Adds, removes or changes procedural languages with a PostgreSQL database.
- This module allows you to add a language, remote a language or change the trust
relationship with a PostgreSQL database. The module can be used on the machine
relationship with a PostgreSQL database. The module can be used on the machine
where executed or on a remote host.
- When removing a language from a database, it is possible that dependencies prevent
the database from being removed. In that case, you can specify casade to
automatically drop objects that depend on the language (such as functions in the
language). In case the language can't be deleted because it is required by the
the database from being removed. In that case, you can specify casade to
automatically drop objects that depend on the language (such as functions in the
language). In case the language can't be deleted because it is required by the
database system, you can specify fail_on_drop=no to ignore the error.
- Be carefull when marking a language as trusted since this could be a potential
security breach. Untrusted languages allow only users with the PostgreSQL superuser
security breach. Untrusted languages allow only users with the PostgreSQL superuser
privilege to use this language to create new functions.
version_added: "1.7"
options:
@@ -53,13 +53,13 @@ options:
choices: [ "yes", "no" ]
db:
description:
- name of database where the language will be added, removed or changed
- name of database where the language will be added, removed or changed
required: false
default: null
force_trust:
description:
- marks the language as trusted, even if it's marked as untrusted in pg_pltemplate.
- use with care!
- use with care!
required: false
default: no
choices: [ "yes", "no" ]
@@ -72,8 +72,8 @@ options:
choices: [ "yes", "no" ]
cascade:
description:
- when dropping a language, also delete object that depend on this language.
- only used when C(state=absent).
- when dropping a language, also delete object that depend on this language.
- only used when C(state=absent).
required: false
default: no
choices: [ "yes", "no" ]
@@ -118,7 +118,7 @@ author: "Jens Depuydt (@jensdepuydt)"
EXAMPLES = '''
# Add language pltclu to database testdb if it doesn't exist:
- postgresql_lang db=testdb lang=pltclu state=present
- postgresql_lang db=testdb lang=pltclu state=present
# Add language pltclu to database testdb if it doesn't exist and mark it as trusted:
# Marks the language as trusted if it exists but isn't trusted yet

View File

@@ -87,7 +87,7 @@ EXAMPLES = '''
name: acme
# Create a new schema "acme" with a user "bob" who will own it
- postgresql_schema:
- postgresql_schema:
name: acme
owner: bob

View File

@@ -26,7 +26,7 @@ module: vertica_schema
version_added: '2.0'
short_description: Adds or removes Vertica database schema and roles.
description:
- Adds or removes Vertica database schema and, optionally, roles
- Adds or removes Vertica database schema and, optionally, roles
with schema access privileges.
- A schema will not be removed until all the objects have been dropped.
- In such a situation, if the module tries to remove the schema it

View File

@@ -253,7 +253,7 @@ def present(user_facts, cursor, user, profile, resource_pool,
if ldap:
if ldap != (user_facts[user_key]['expired'] == 'True'):
query_fragments.append("password expire")
changed = True
changed = True
elif expired is not None and expired != (user_facts[user_key]['expired'] == 'True'):
if expired:
query_fragments.append("password expire")