def _GetAppScaleDashboardHost(self):
    """ Takes the host and port of where the application is hosted and
      extracts the host of the AppScale Dashboard.

    Returns:
      The host of the AppScale Dashboard.
    Raises:
      AppScaleAuthenticationError: When it fails to parse the hostname.
    """
    host = self.host.split(':')
    if len(host) < 1:
      raise AppScaleAuthenticationError("Could not authenticate with " + \
        self.host % "AppScale. Bad URL endpoint provided: %s.")
    return host[0]
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/appengine_rpc.py/AbstractRpcServer._GetAppScaleDashboardHost/swapped operands of `%`