Bemmu / PyNamecheap

Namecheap API client in Python.
MIT License
197 stars 69 forks source link

api.domains_dns_addHost() methods breaks when domain value is a subdomain #24

Closed ronbeltran closed 6 years ago

ronbeltran commented 6 years ago
domain = "www.example.com "
record = {
    # required
    "Type": "A",
    "Name": "test1",
    "Address": "127.0.0.1",
}
# add A "test1" record pointing to 127.0.0.1
api.domains_dns_addHost(domain, record)

I need to add host record for a subdomain like www.example.com using this method domains_dns_addHost. However this breaks and gives ValueError: too many values to unpack error in this line https://github.com/Bemmu/PyNamecheap/blob/master/namecheap.py#L383. Any avdice on how to fix it?

ronbeltran commented 6 years ago

closing this, It was a mistake in my part.