summaryrefslogtreecommitdiff
path: root/trove/guestagent/datastore/mysql_common/service.py
diff options
context:
space:
mode:
authorzhufl <zhu.fanglei@zte.com.cn>2019-01-10 09:30:06 +0800
committerzhufl <zhu.fanglei@zte.com.cn>2019-01-10 17:30:54 +0800
commit683865ee6557fec1d4acdc1022b857c13a3f8fbe (patch)
tree9a5354f1cde459323ba058a953ba824ac7028b37 /trove/guestagent/datastore/mysql_common/service.py
parente9cc6ca372e627673113cc36d582732968b74600 (diff)
downloadtrove-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.py2
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):