Fix removal of DNS record after completion

Changes undocumented API function to `dns/records/$_domain_name`.  
Since it checks for root right before asking for the ID, there is not need to check again and the `$_domain_name` should be accurate.  
Just changed the function name and it worked for me (no need to patch sed), but not sure why the other patch wants to change the sed call.  
----------------------------------------
API Reference: https://www.dynu.com/en-US/Resources/API/Documentation#DNSRecords
This commit is contained in:
Gustavo Arnosti Neves 2018-09-06 07:03:17 -03:00 committed by GitHub
parent c31db83b26
commit 56af0e2c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ _get_recordid() {
fulldomain=$1
txtvalue=$2
if ! _dynu_rest GET "dns/record/get?hostname=$fulldomain&rrtype=TXT"; then
if ! _dynu_rest GET "dns/records/$_domain_name"; then
return 1
fi