code: def version():
      '''
      .. versionchanged:: 2016.3.0
          Return data now contains just the version number as a string, instead
          of a dictionary as returned from :py:func:`cmd.run_all
          <salt.modules.cmdmod.run_all>`.
  
      Returns rsync version
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' rsync.version
      '''
      try:
          out = __salt__['cmd.run_stdout'](
              ['rsync', '--version'],
              python_shell=False)
      except (IOError, OSError) as exc:
          raise CommandExecutionError(exc.strerror)
      try:
          return out.split('\n')[0].split()[2]
      except IndexError:
          raise CommandExecutionError('Unable to determine rsync version'f version():
      '''
      .. versionchanged:: 2016.3.0
          Return data now contains just the version number as a string, instead
          of a dictionary as returned from :py:func:`cmd.run_all
          <salt.modules.cmdmod.run_all>`.
  
      Returns rsync version
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' rsync.version
      '''
      try:
          out = __salt__['cmd.run_stdout'](
              ['rsync', '--version'],
              python_shell=False)
      except (IOError, OSError) as exc:
          raise CommandExecutionError(exc.strerror)
      try:
          return out.split('\n')[0].split()[2]
      except IndexError:
          raise CommandExecutionError('Unable to determine rsync version')
docs: .. versionchanged:: 2016.3.0
          Return data now contains just the version number as a string, instead
          of a dictionary as returned from :py:func:`cmd.run_all
          <salt.modules.cmdmod.run_all>`.
  
      Returns rsync version
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' rsync.version