boto/boto — Issue #557: Null HealthCheckGracePeriod
Author: buzztroll
Created: 2012-02-03 22:49:55+00:00
State: open

When the service returns with a call to DescribeAuthScaleGroups boto throws this error:

File "/usr/lib/python2.7/dist-packages/boto/connection.py", line 675, in get_list
xml.sax.parseString(body, h)
File "/usr/lib/python2.7/xml/sax/__init__.py", line 49, in parseString
parser.parse(inpsrc)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/usr/lib/python2.7/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/usr/lib/python2.7/xml/sax/expatreader.py", line 304, in end_element
self._cont_handler.endElement(name)
File "/usr/lib/python2.7/dist-packages/boto/handler.py", line 38, in endElement
self.nodes[-1][1].endElement(name, self.current_text, self.connection)
File "/usr/lib/python2.7/dist-packages/boto/ec2/autoscale/group.py", line 217, in endElement
self.health_check_period = int(value)
ValueError: invalid literal for int() with base 10: ''

It is trying to convert '' to an int and fails. Perhaps a check for if not value: self.health_check_period = None?