if aws_rest POST "2013-04-01$_domain_id/rrset/""""$_aws_tmpl_xml"&& _contains "$response""ChangeResourceRecordSetsResponse";then
if aws_rest POST "2013-04-01$_domain_id/rrset/""""$_aws_tmpl_xml"&& _contains "$response""ChangeResourceRecordSetsResponse";then
_info "txt record updated success."
_info "TXT record updated successfully."
return0
return0
fi
fi
@ -99,7 +99,7 @@ dns_aws_rm() {
_debug _sub_domain "$_sub_domain"
_debug _sub_domain "$_sub_domain"
_debug _domain "$_domain"
_debug _domain "$_domain"
_info "Geting existing records for $fulldomain"
_info "Getting existing records for $fulldomain"
if ! aws_rest GET "2013-04-01$_domain_id/rrset""name=$fulldomain&type=TXT";then
if ! aws_rest GET "2013-04-01$_domain_id/rrset""name=$fulldomain&type=TXT";then
return1
return1
fi
fi
@ -108,14 +108,14 @@ dns_aws_rm() {
_resource_record="$(echo"$response"| sed 's/<ResourceRecordSet>/"/g'| tr '"'"\n"| grep "<Name>$fulldomain.</Name>"| _egrep_o "<ResourceRecords.*</ResourceRecords>"| sed "s/<ResourceRecords>//"| sed "s#</ResourceRecords>##")"
_resource_record="$(echo"$response"| sed 's/<ResourceRecordSet>/"/g'| tr '"'"\n"| grep "<Name>$fulldomain.</Name>"| _egrep_o "<ResourceRecords.*</ResourceRecords>"| sed "s/<ResourceRecords>//"| sed "s#</ResourceRecords>##")"