python-doctl
python-doctl copied to clipboard
AttributeError: 'ComputeDomain' object has no attribute 'records'
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!
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)