modify upgrade script
This commit is contained in:
@ -581,7 +581,7 @@ if __name__ == '__main__':
|
|||||||
password = get_opt_password()
|
password = get_opt_password()
|
||||||
timeout = int(get_opt_timeout())
|
timeout = int(get_opt_timeout())
|
||||||
logging.info('parameters from cmd: host=\"%s\", port=%s, user=\"%s\", password=\"%s\", timeout=\"%s\", log-file=\"%s\"',\
|
logging.info('parameters from cmd: host=\"%s\", port=%s, user=\"%s\", password=\"%s\", timeout=\"%s\", log-file=\"%s\"',\
|
||||||
host, port, user, password, log_filename)
|
host, port, user, password, timeout, log_filename)
|
||||||
do_check(host, port, user, password, timeout, upgrade_params)
|
do_check(host, port, user, password, timeout, upgrade_params)
|
||||||
except mysql.connector.Error, e:
|
except mysql.connector.Error, e:
|
||||||
logging.exception('mysql connctor error')
|
logging.exception('mysql connctor error')
|
||||||
|
|||||||
@ -2088,7 +2088,7 @@
|
|||||||
# password = get_opt_password()
|
# password = get_opt_password()
|
||||||
# timeout = int(get_opt_timeout())
|
# timeout = int(get_opt_timeout())
|
||||||
# logging.info('parameters from cmd: host=\"%s\", port=%s, user=\"%s\", password=\"%s\", timeout=\"%s\", log-file=\"%s\"',\
|
# logging.info('parameters from cmd: host=\"%s\", port=%s, user=\"%s\", password=\"%s\", timeout=\"%s\", log-file=\"%s\"',\
|
||||||
# host, port, user, password, log_filename)
|
# host, port, user, password, timeout, log_filename)
|
||||||
# do_check(host, port, user, password, timeout, upgrade_params)
|
# do_check(host, port, user, password, timeout, upgrade_params)
|
||||||
# except mysql.connector.Error, e:
|
# except mysql.connector.Error, e:
|
||||||
# logging.exception('mysql connctor error')
|
# logging.exception('mysql connctor error')
|
||||||
|
|||||||
@ -2088,7 +2088,7 @@
|
|||||||
# password = get_opt_password()
|
# password = get_opt_password()
|
||||||
# timeout = int(get_opt_timeout())
|
# timeout = int(get_opt_timeout())
|
||||||
# logging.info('parameters from cmd: host=\"%s\", port=%s, user=\"%s\", password=\"%s\", timeout=\"%s\", log-file=\"%s\"',\
|
# logging.info('parameters from cmd: host=\"%s\", port=%s, user=\"%s\", password=\"%s\", timeout=\"%s\", log-file=\"%s\"',\
|
||||||
# host, port, user, password, log_filename)
|
# host, port, user, password, timeout, log_filename)
|
||||||
# do_check(host, port, user, password, timeout, upgrade_params)
|
# do_check(host, port, user, password, timeout, upgrade_params)
|
||||||
# except mysql.connector.Error, e:
|
# except mysql.connector.Error, e:
|
||||||
# logging.exception('mysql connctor error')
|
# logging.exception('mysql connctor error')
|
||||||
|
|||||||
Reference in New Issue
Block a user