|
|
|
@ -72,7 +72,7 @@ dns_infoblox_rm() { |
|
|
|
objRef=$(egrep -o 'record:txt/.*:.*/default' <<<$result) |
|
|
|
objRmUrl="https://$Infoblox_Server/wapi/v2.2.2/$objRef" |
|
|
|
## Delete them! All the stale records! |
|
|
|
rmResult=$(_post "" "$objRmUrl" "" "DELETE") |
|
|
|
rmResult=$(_post "" "$objRmUrl" "" "DELETE") |
|
|
|
## Let's see if that worked |
|
|
|
if echo "$rmResult" | egrep 'record:txt/.*:.*/default'; then |
|
|
|
_info "Successfully deleted $objRef" |
|
|
|
|