Public bug reported:
Binary package hint: ec2-init
In Ubuntu 9.10 (Karmic) => ec2-ami-tools package (multiverse) =>
/usr/bin/ec2-fetch-credentials
An AttributeError is raised by ec2init (uncaught) for a value equivalent to
True ("on", "1", "yes"):
r...@ip-10-243-109-226:/home/ubuntu# lsb_release -rd
Description: Ubuntu 9.10
Release: 9.10
r...@ip-10-243-109-226:/home/ubuntu# which ec2-fetch-credentials
/usr/bin/ec2-fetch-credentials
r...@ip-10-243-109-226:/home/ubuntu# ec2-fetch-credentials
Traceback (most recent call last):
File "/usr/bin/ec2-fetch-credentials", line 67, in <module>
main()
File "/usr/bin/ec2-fetch-credentials", line 49, in main
disable_root = ec2.get_cfg_option_bool('disable_root', True)
File "/usr/lib/python2.6/dist-packages/ec2init/__init__.py", line 58, in
get_cfg_option_bool
if val.lower() in ['1', 'on', 'yes']:
AttributeError: 'bool' object has no attribute 'lower'
r...@ip-10-243-109-226:/home/ubuntu# cat /etc/ec2-init/ec2-config.cfg
user="ubuntu"
DISABLE_ROOT="on"
The issue is that configob.ConfigObj.get('disable_root', True) returns
True for one of "1","on","yes" already, rather than a string.
I'm attaching a patch.
** Affects: ec2-init (Ubuntu)
Importance: Undecided
Status: New
--
AttributeError thrown for True values
https://bugs.launchpad.net/bugs/507709
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs