python-doctl icon indicating copy to clipboard operation
python-doctl copied to clipboard

AttributeError: 'ComputeDomain' object has no attribute 'records'

Open scottmberry opened this issue 5 years ago • 1 comments

I'm a python n00b so maybe it's my error but it seems like I am having some issues using some of the methods. For example, I can do a simple doctl.compute.domain.list() without any issue.

However, when I try to do something more complex, like doctl.compute.domain.records.list(domain="mydomain.com") I get an error AttributeError: 'ComputeDomain' object has no attribute 'records'

Am I missing something obvious? Thanks for any help and this project!

scottmberry avatar Dec 31 '20 03:12 scottmberry

Hi @scottmberry, you have a typo in your call. doctl.compute.domain.records.list(name) should have the . replaced with a _ in domain.records. For example:

doctl.compute.domain_records.list(name)

kiyose avatar Jan 01 '21 00:01 kiyose