diff options
author | zhufl <zhu.fanglei@zte.com.cn> | 2019-01-10 09:30:06 +0800 |
---|---|---|
committer | zhufl <zhu.fanglei@zte.com.cn> | 2019-01-10 17:30:54 +0800 |
commit | 683865ee6557fec1d4acdc1022b857c13a3f8fbe (patch) | |
tree | 9a5354f1cde459323ba058a953ba824ac7028b37 /trove/guestagent/datastore/mysql_common/service.py | |
parent | e9cc6ca372e627673113cc36d582732968b74600 (diff) | |
download | trove-683865ee6557fec1d4acdc1022b857c13a3f8fbe.tar.gz |
Do not use self in classmethod
cls should be used in classmethd, instead of self.
Change-Id: I0797a0ad0007450d76efa02bd05a5ca9db878938
Diffstat (limited to 'trove/guestagent/datastore/mysql_common/service.py')
-rw-r--r-- | trove/guestagent/datastore/mysql_common/service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trove/guestagent/datastore/mysql_common/service.py b/trove/guestagent/datastore/mysql_common/service.py index 28931b03..83ecbbe3 100644 --- a/trove/guestagent/datastore/mysql_common/service.py +++ b/trove/guestagent/datastore/mysql_common/service.py @@ -641,7 +641,7 @@ class BaseMySqlApp(object): {MySQLConfParser.SERVER_CONF_SECTION: {'datadir': value}}) @classmethod - def get_client_auth_file(self): + def get_client_auth_file(cls): return guestagent_utils.build_file_path("~", ".my.cnf") def __init__(self, status, local_sql_client, keep_alive_connection_cls): |