(self, version)
return major, minor, patch
GlusterFS versions are in format <major>.<minor>
GlusterFS versions are in format <major>.<minor>
GlusterFS versions are in format <major > . <minor >
def parse_version(self, version):
        # type (str) -> str, str, str
        """
        GlusterFS versions are in format <major>.<minor>
        """
        major, minor, patch = None, None, None
        try:
            split_version = version.split('.')
            major, minor = split_version[0:2]
            if len(split_version) > 2:
                patch = split_version[2]
        except ValueError as e:
            self.log.debug("Unable to parse GlusterFS version %s: %s", str(version), str(e))
        return major, minor, patch
def parse_version ( self , version ) : # type (str) -> str, str, str major , minor , patch = None , None , None try : split_version = version . split ( '.' ) major , minor = split_version [ 0 : 2 ] if len ( split_version ) > 2 : patch = split_version [ 2 ] except ValueError as e : self . log . debug ( "Unable to parse GlusterFS version %s: %s" , str ( version ) , str ( e ) ) return major , minor , patch