czardoz / openarkkit

Automatically exported from code.google.com/p/openarkkit
0 stars 1 forks source link

defaults-file also override host option #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run: oak-chunk-update --defaults-file=/home/user/.my.cnf 
--host=xxx.xxx.xxx.xxx ...

What is the expected output? What do you see instead?
script try to connect to localhost, no take care about host option and per 
documentation must do that

What version of the product are you using? On what operating system?
oak-chunk-update any not OS related

Please provide any additional information below.
def open_connection():
    if options.defaults_file:
        conn = MySQLdb.connect(
            read_default_file = options.defaults_file,
            db = database_name)

host option should be there too

Original issue reported on code.google.com by max.bube...@percona.com on 9 Oct 2013 at 9:16