Update dns_loopia.sh

Loopia API is now less tolerant so we need another <value> tag surrounding the <struct>
This commit is contained in:
Gabriel Thörnblad 2022-03-04 13:38:05 +01:00
parent 2a2d556551
commit 0ed4fc6a12

View File

@ -206,24 +206,26 @@ _loopia_add_record() {
<value><string>%s</string></value> <value><string>%s</string></value>
</param> </param>
<param> <param>
<struct> <value>
<member> <struct>
<name>type</name> <member>
<value><string>TXT</string></value> <name>type</name>
</member> <value><string>TXT</string></value>
<member> </member>
<name>priority</name> <member>
<value><int>0</int></value> <name>priority</name>
</member> <value><int>0</int></value>
<member> </member>
<name>ttl</name> <member>
<value><int>300</int></value> <name>ttl</name>
</member> <value><int>300</int></value>
<member> </member>
<name>rdata</name> <member>
<value><string>%s</string></value> <name>rdata</name>
</member> <value><string>%s</string></value>
</struct> </member>
</struct>
</value>
</param> </param>
</params> </params>
</methodCall>' $LOOPIA_User $LOOPIA_Password "$domain" "$sub_domain" "$txtval") </methodCall>' $LOOPIA_User $LOOPIA_Password "$domain" "$sub_domain" "$txtval")