code: def get_master_ip(host=None, port=None, password=None):
      '''
      Get host information about slave
  
      .. versionadded: 2016.3.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.get_master_ip
      '''
      server = _connect(host, port, password)
      srv_info = server.info()
      ret = (srv_info.get('master_host', ''), srv_info.get('master_port', ''))
      return dict(list(zip(('master_host', 'master_port'), ret))f get_master_ip(host=None, port=None, password=None):
      '''
      Get host information about slave
  
      .. versionadded: 2016.3.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.get_master_ip
      '''
      server = _connect(host, port, password)
      srv_info = server.info()
      ret = (srv_info.get('master_host', ''), srv_info.get('master_port', ''))
      return dict(list(zip(('master_host', 'master_port'), ret)))
docs: Get host information about slave
  
      .. versionadded: 2016.3.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' redis.get_master_ip