summaryrefslogtreecommitdiff
path: root/database
diff options
context:
space:
mode:
authorhyperized <gerben@hyperized.net>2016-04-13 11:15:48 +0200
committerRené Moser <mail@renemoser.net>2016-04-13 11:15:48 +0200
commit48fa3a5243531993cbf7628850a8be54790be91c (patch)
tree7bc1d5e2a438e997b1d516362d5a0c33a86e94b4 /database
parent79ff95963586b26c46edce4fdb724714b88205da (diff)
downloadansible-modules-core-48fa3a5243531993cbf7628850a8be54790be91c.tar.gz
Set --quick to True by default and make it selectable (#3418)
As indicated by @jmainguy in https://github.com/ansible/ansible-modules-core/commit/eb1cb94380281d114f84c571551fa164c2c18a09#commitcomment-17077470, this will allow the user to set the option quick, which is True by default (as it was before). This is in reference to: https://github.com/ansible/ansible-modules-core/pull/3402
Diffstat (limited to 'database')
-rw-r--r--database/mysql/mysql_db.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/database/mysql/mysql_db.py b/database/mysql/mysql_db.py
index ebdd1e00..0d40be3d 100644
--- a/database/mysql/mysql_db.py
+++ b/database/mysql/mysql_db.py
@@ -66,7 +66,7 @@ options:
description:
- Option used for dumping large tables
required: false
- default: false
+ default: true
version_added: "2.1"
author: "Ansible Core Team"
requirements:
@@ -122,7 +122,6 @@ def db_dump(module, host, user, password, db_name, target, all_databases, port,
# If defined, mysqldump demands --defaults-extra-file be the first option
if config_file:
cmd += " --defaults-extra-file=%s" % pipes.quote(config_file)
- cmd += " --quick"
if user is not None:
cmd += " --user=%s" % pipes.quote(user)
if password is not None:
@@ -248,7 +247,7 @@ def main():
connect_timeout=dict(default=30, type='int'),
config_file=dict(default="~/.my.cnf", type='path'),
single_transaction=dict(default=False, type='bool'),
- quick=dict(default=False, type='bool'),
+ quick=dict(default=True, type='bool'),
),
supports_check_mode=True
)