Commit 345329b6 by Dylan Martin

toned down the error message for unconfigured master/slave

parent 6b26a736
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment