(self, value)
Possible formats:
        Apache | Apache/X | Apache/X.Y | Apache/X.Y.Z | Apache/X.Y.Z (<OS>) | Apache/X.Y.Z (<OS>) <not specified>
        https://httpd.apache.org/docs/2.4/mod/core.html#servertokens
Possible formats:
        Apache | Apache/X | Apache/X.Y | Apache/X.Y.Z | Apache/X.Y.Z (<OS>) | Apache/X.Y.Z (<OS>) <not specified>
        https://httpd.apache.org/docs/2.4/mod/core.html#servertokens
Possible formats : Apache | Apache / X | Apache / X . Y | Apache / X . Y . Z | Apache / X . Y . Z ( <OS > ) | Apache / X . Y . Z ( <OS > ) <not specified > https : // httpd . apache . org / docs / 2 . 4 / mod / core . html#servertokens
def _submit_metadata(self, value):
        """Possible formats:
        Apache | Apache/X | Apache/X.Y | Apache/X.Y.Z | Apache/X.Y.Z (<OS>) | Apache/X.Y.Z (<OS>) <not specified>
        https://httpd.apache.org/docs/2.4/mod/core.html#servertokens
        """
        match = self.VERSION_REGEX.match(value)

        if not match or not match.groups():
            self.log.info("Cannot parse the complete Apache version from %s.", value)
            return

        version = match.group(1)
        version_parts = {name: part for name, part in zip(('major', 'minor', 'patch'), version.split('.'))}
        self.set_metadata('version', version, scheme='parts', final_scheme='semver', part_map=version_parts)
        self.log.debug("found apache version %s", version)
def _submit_metadata ( self , value ) : match = self . VERSION_REGEX . match ( value ) if not match or not match . groups ( ) : self . log . info ( "Cannot parse the complete Apache version from %s." , value ) return version = match . group ( 1 ) version_parts = { name : part for name , part in zip ( ( 'major' , 'minor' , 'patch' ) , version . split ( '.' ) ) } self . set_metadata ( 'version' , version , scheme = 'parts' , final_scheme = 'semver' , part_map = version_parts ) self . log . debug ( "found apache version %s" , version )