euca-describe-addresses fails with missing attribute on Address object
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
euca2ools | Status tracked in Devel | |||||
2.0 |
Fix Released
|
Wishlist
|
Unassigned | |||
Devel |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Stacktrace:
File "/opt/local/
cmd.main_cli()
File "/opt/local/
self.
File "/opt/local/
domain = address.domain or 'standard'
None
euca2ools Version 2.0.0, Python 2.7, Mac OS X (10.7.2), boto 2.0
Fix:
euca2ools/
Replace:
With:
if not domain: domain = "standard"
I wasn't sure if this was (perhaps) a change in the bot API for the address object or not, so I just replaced with a getattr call and a default return of None...which we can then test and assign the default domain string "standard".
This would cover the explicit case currently in the code and the special case, resulting in this bug, of an undefined attribute.
summary: |
euca-describe-addresses fails with missing attribute on Address object + when using boto < 2.1 |
Address.domain was introduced in boto 2.1. Are you able to use a newer boto port?