File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -511,9 +511,9 @@ def __get_master_status(self):
511
511
512
512
def __get_slave_status (self ):
513
513
"""Get slave status if the instance is a slave."""
514
- if ( self .is_mariadb () ):
514
+ if self .is_mariadb ():
515
515
res = self .__exec_sql ('SHOW ALL SLAVES STATUS' )
516
- else :
516
+ else :
517
517
res = self .__exec_sql ('SHOW SLAVE STATUS' )
518
518
if res :
519
519
for line in res :
@@ -757,9 +757,9 @@ def main():
757
757
758
758
cursor .execute ("SELECT VERSION()" )
759
759
if 'mariadb' in cursor .fetchone ()[0 ].lower ():
760
- server_implementation = "mariadb"
760
+ server_implementation = "mariadb"
761
761
else :
762
- server_implementation = "mysql"
762
+ server_implementation = "mysql"
763
763
764
764
###############################
765
765
# Create object and do main job
You can’t perform that action at this time.
0 commit comments