neilpang 7 years ago
parent
commit
ce6c7d4b59
1 changed files with 1 additions and 6 deletions
  1. 1 6
      dnsapi/dns_dp.sh

+ 1 - 6
dnsapi/dns_dp.sh

@@ -93,12 +93,7 @@ add_record() {
     return 1
     return 1
   fi
   fi
 
 
-  if _contains "$response" "Action completed successful"; then
-
-    return 0
-  fi
-
-  return 1 #error
+  _contains "$response" "Action completed successful" || _contains "$response" "Domain record already exists"
 }
 }
 
 
 ####################  Private functions below ##################################
 ####################  Private functions below ##################################