Skip to content

Commit d539e90

Browse files
committed
Actually exit MySQL replication when badly called
Previously this would just print out that you shouldn't be doing what you're doing and then continue happily. This is currently potentially breaking behaviour so actually exit instead.
1 parent 6c7a443 commit d539e90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def setup_slave_from_master(master):
4646
Usage: fab environment -H mysql-slave-1.backend mysql.setup_slave_from_master:'mysql-master-1.backend'
4747
"""
4848
if len(env.hosts) > 1:
49-
print 'This job is currently only setup to run against one slave at a time'
49+
exit('This job is currently only setup to run against one slave at a time')
5050

5151
with settings(host_string=master):
5252
# The use of `--master-data` here implies `--lock-all-tables` per the

0 commit comments

Comments
 (0)