boto/boto — Issue #401: Explicitly connecting to an AutoScale region is broken without "[Boto]" in ~/.boto
Author: rodawg
Created: 2011-11-12 20:58:16+00:00
State: open

Using ~/.boto with only [Credentials] settings raised the following errors after updating from 2.0 to 2.1.1:

Traceback (most recent call last):
File "./runAS", line 96, in
asConn = awsUtils.connAutoScale(regionName=args.regionName)
File "/home/user/src/Admin/Utils/awsUtils.py", line 103, in connAutoScale
asConn = boto.ec2.autoscale.connect_to_region(region_name=host)
File "/usr/local/lib/python2.7/dist-packages/boto/ec2/autoscale/__init__.py", line 77, in connect_to_region
return region.connect(**kw_params)
File "/usr/local/lib/python2.7/dist-packages/boto/regioninfo.py", line 62, in connect
return self.connection_cls(region=self, **kw_params)
File "/usr/local/lib/python2.7/dist-packages/boto/ec2/autoscale/__init__.py", line 107, in __init__
https_connection_factory, path=path)
File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 819, in __init__
security_token=security_token)
File "/usr/local/lib/python2.7/dist-packages/boto/connection.py", line 449, in __init__
self.debug = config.getint('Boto', 'debug', debug)
File "/usr/local/lib/python2.7/dist-packages/boto/pyami/config.py", line 155, in getint
val = int(default)
TypeError: int() argument must be a string or a number, not 'NoneType'

Adding an empty [Boto] section to ~/.boto fixed this.