toned down the error message for unconfigured master/slave

pull/4342/head
Dylan Martin 11 years ago
parent 6b26a73681
commit 345329b69f

@ -305,15 +305,15 @@ def main():
masterstatus = get_master_status(cursor)
try:
module.exit_json( **masterstatus )
except TypeError, e:
module.fail_json(msg="Server is not configured as mysql master: %s" % e)
except TypeError:
module.fail_json(msg="Server is not configured as mysql master")
elif mode in "getslave":
slavestatus = get_slave_status(cursor)
try:
module.exit_json( **slavestatus )
except TypeError, e:
module.fail_json(msg="Server is not configured as mysql slave: %s" % e)
except TypeError:
module.fail_json(msg="Server is not configured as mysql slave")
elif mode in "changemaster":
print "Change master"

Loading…
Cancel
Save