def _GetAppDashboardPublicIP(self):
    """Returns the AppDashboard's public IP address.

    AppScale uses this method to avoid having to run the AppDashboard
    on every virtual machine in the deployment. We ask for the public IP
    (as opposed to the private IP) because we force the user to redirect
    their web browser to that IP, so it must be accessible from the user's
    computer.

    Returns:
      The IP address where the AppDashboard can be contacted.
    """
    try:
      file_handle = open(APPSCALE_DASHBOARD_IP_LOC)
      ip = file_handle.read()
      file_handle.close()
    except IOError:
      logger.info("Saw an IOError when trying to get the AppDashboard's" + \
        "public IP, returning localhost instead")
      ip = "localhost"

    logger.info(ip % "Returning %s as the public IP to have users log into.")
    return ip
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/appengine_rpc.py/AbstractRpcServer._GetAppDashboardPublicIP/swapped operands of `%`