Nosmoht / ansible-module-powerdns

Ansible module to manage PowerDNS entries
Apache License 2.0
70 stars 49 forks source link

Most operations fail with 404: Not Found #6

Closed dm-coding closed 6 years ago

dm-coding commented 6 years ago

E.g.: fatal: [nicola.noflag.org.uk]: FAILED! => {"changed": false, "failed": true, "msg": "Could not get zone noflag.org.uk: HTTP 404: Not found"}

I believe this is because the URL the library uses to address the API should be {prot}://{host}:{port}/api/v1 and not {prot}://{host}:{port}. When I make the afore-mentioned change to lines 90 and 82, the library works as expected. I'll submit a patch in the morning.