gtaylor / python-route53

A simple Python 2.7/3.x compatible Route53 module. [UNMAINTAINED]
https://python-route53.readthedocs.org
MIT License
40 stars 21 forks source link

TypeError on Traffic Policy A records #17

Closed yoshiakikuida closed 7 years ago

yoshiakikuida commented 7 years ago

Hi,

I'm having trouble listing all my records in Route53 because there's an A record associated with a traffic policy that causes a type error to be thrown in list_resource_record_sets_by_zone_id.py for method parse_rrset. The issue is that once it throws an exception from the traffic policy record, the generator stops and I can't get any of the records after that record.

My current workaround is to catch the TypeError from subclass = RRSetSubclass(**kwargs) and return None (just ignoring it).

I was wondering if there were any plans to add traffic policy support?

Thanks!

gtaylor commented 7 years ago

Hello,

I'm not currently actively using python-route53. I'd be glad to talk about what a PR might look like if someone is interested in tackling it, but have no plans to add such a thing myself right now.

yoshiakikuida commented 7 years ago

I'm ok with the workaround for now, thanks for your quick response