def get_nodes(self, keyname):
    """ Retrieve a list of the running nodes.

    Args:
      keyname: An identifier for the AppScale deployment.
    Returns:
      A list of nodes in the running AppScale deployment.
    Raises:
      AppScaleException: If there is no locations JSON file.
    """
    try:
      with open(self.get_locations_json_file(keyname)) as locations_file:
        return json.loads(locations_file.read())
    except __HOLE__:
      raise AppScaleException("AppScale does not currently appear to"
        " be running. Please start it and try again.")
dataset/ETHPy150Open AppScale/appscale-tools/lib/appscale.py/AppScale.get_nodes