boto/boto — pull request #1034 by royrapoport (2012-10-03 23:53:18+00:00)
Title: Fixing describe_alarms

As coded prior to my fix, describe_alarms returns the first element from the get_list() call; get_list returns a ResultSet which according to the API is what describe_alarms() is supposed to return, but by returning the first element, we actually return a MetricAlarms object. Which also means we have no next_token element, and cannot retrieve alarms beyond the first set of alarms returned by the paginated AWS interface. Returning the full result from get_list() gets us a ResultSet as the Boto documented API says we should get.