Skip to content

Commit

Permalink
Fixing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wfelipew committed Jan 4, 2024
1 parent a7de8f8 commit b2072a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/modules/mysql_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,9 @@ def __get_master_status(self):

def __get_slave_status(self):
"""Get slave status if the instance is a slave."""
if(self.is_mariadb()):
if self.is_mariadb():
res = self.__exec_sql('SHOW ALL SLAVES STATUS')
else:
else:
res = self.__exec_sql('SHOW SLAVE STATUS')
if res:
for line in res:
Expand Down Expand Up @@ -757,9 +757,9 @@ def main():

cursor.execute("SELECT VERSION()")
if 'mariadb' in cursor.fetchone()[0].lower():
server_implementation="mariadb"
server_implementation = "mariadb"
else:
server_implementation="mysql"
server_implementation = "mysql"

###############################
# Create object and do main job
Expand Down

0 comments on commit b2072a2

Please sign in to comment.