@@ -133,7 +133,7 @@ def wait_until_mysql_connection(self) -> None:
133
133
# Increment this major API version when introducing breaking changes
134
134
LIBAPI = 0
135
135
136
- LIBPATCH = 83
136
+ LIBPATCH = 84
137
137
138
138
UNIT_TEARDOWN_LOCKNAME = "unit-teardown"
139
139
UNIT_ADD_LOCKNAME = "unit-add"
@@ -1027,7 +1027,7 @@ def render_mysqld_configuration( # noqa: C901
1027
1027
config .write (string_io )
1028
1028
return string_io .getvalue (), dict (config ["mysqld" ])
1029
1029
1030
- def configure_mysql_users (self , password_needed : bool = True ) -> None :
1030
+ def configure_mysql_users (self ) -> None :
1031
1031
"""Configure the MySQL users for the instance."""
1032
1032
# SYSTEM_USER and SUPER privileges to revoke from the root users
1033
1033
# Reference: https://dev.mysql.com/doc/refman/8.0/en/privileges-provided.html#priv_super
@@ -1065,13 +1065,10 @@ def configure_mysql_users(self, password_needed: bool = True) -> None:
1065
1065
1066
1066
try :
1067
1067
logger .debug (f"Configuring MySQL users for { self .instance_address } " )
1068
- if password_needed :
1069
- self ._run_mysqlcli_script (
1070
- configure_users_commands ,
1071
- password = self .root_password ,
1072
- )
1073
- else :
1074
- self ._run_mysqlcli_script (configure_users_commands )
1068
+ self ._run_mysqlcli_script (
1069
+ configure_users_commands ,
1070
+ password = self .root_password ,
1071
+ )
1075
1072
except MySQLClientError :
1076
1073
logger .error (f"Failed to configure users for: { self .instance_address } " )
1077
1074
raise MySQLConfigureMySQLUsersError
0 commit comments