def getRow():
 try:
  db = mysql.connect(host=mysqlHost, user=mysqlUser, passwd=mysqlPasswd)
  cursor = db.cursor()
  cursor.execute("SHOW STATUS LIKE '%wsrep%'")
  result = cursor.fetchall()
 except:
  print 'Error: unable to fetch data - Check your configuration!'
  sys.exit(13)
 db.close()
 return result

def getRow ( ) : try : db = mysql . connect ( host = mysqlHost , user = mysqlUser , passwd = mysqlPasswd ) cursor = db . cursor ( ) cursor . execute ( "SHOW STATUS LIKE '%wsrep%'" ) result = cursor . fetchall ( ) except : print 'Error: unable to fetch data - Check your configuration!' sys . exit ( 13 ) db . close ( ) return result
test connection .