def __getClientMainVersion(self): mainVersion = None try: _, clentVersion = readClientServerVersion() parsedVersion = parseVersion(clentVersion) _, mainVersion, _ = parsedVersion except: LOG_ERROR('Can not read or parse client-server version') finally: return mainVersion
def getClientVersion(): ''' getClientVersion() -> cluster, version, patch ''' return account_shared.readClientServerVersion()[1].split('_')