parameters: (self, version)
return_statement: return {k: int(v) for k, v in ver.items()}
docstring: Return the components of a Ceph version string.
  
          This returns nothing when the version string cannot be parsed into its
          constituent components, such as when Ceph has been built with
          ENABLE_GIT_VERSION=OFF.
docstring_summary: Return the components of a Ceph version string.
docstring_tokens: Return the components of a Ceph version string .
function: def _version_parse(self, version):
          """
          Return the components of a Ceph version string.
  
          This returns nothing when the version string cannot be parsed into its
          constituent components, such as when Ceph has been built with
          ENABLE_GIT_VERSION=OFF.
          """
          r = r"ceph version (?P<release>\d+)\.(?P<major>\d+)\.(?P<minor>\d+)"
          m = re.match(r, version)
          ver = {} if not m else {
              "release": m.group("release"),
              "major": m.group("major"),
              "minor": m.group("minor")
          }
          return {k: int(v) for k, v in ver.items()}
function_tokens: def _version_parse ( self , version ) : r = r"ceph version (?P<release>\d+)\.(?P<major>\d+)\.(?P<minor>\d+)" m = re . match ( r , version ) ver = { } if not m else { "release" : m . group ( "release" ) , "major" : m . group ( "major" ) , "minor" : m . group ( "minor" ) } return { k : int ( v ) for k , v in ver . items ( ) }