Browse Source

Fix soa_edit command

The request would not be performed when provided with more than one edit option

Fixes #24
tags/v0.4.0
Silke 8 months ago
parent
commit
5426532865
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      pdns_api.sh

+ 1
- 1
pdns_api.sh View File

@@ -344,7 +344,7 @@ soa_edit() {
echo "SOA-EDIT-API: ${soa_edit_api}"

# Update values
if [[ $# -eq 2 ]]; then
if [[ $# -ge 2 ]]; then
request "PUT" "${url}/${1}" '{
"soa_edit":"'"${soa_edit}"'",
"soa_edit_api":"'"${soa_edit_api}"'",

Loading…
Cancel
Save