mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-08 07:54:13 +00:00
More formatting
This commit is contained in:
parent
8fab63689e
commit
b30f5c0be7
@ -62,9 +62,9 @@ dns_infoblox_rm() {
|
||||
|
||||
if _info "$result" | egrep 'record:txt/.*:.*/default'; then
|
||||
# Extract object ref
|
||||
objRef=`grep -Po 'record:txt/.*:.*/default' <<< $result`
|
||||
objRef=$(grep -Po 'record:txt/.*:.*/default' <<< $result)
|
||||
objRmUrl="https://$Infoblox_Server/wapi/v2.2.2/$objRef"
|
||||
rmResult=`curl -k -u $Infoblox_Creds -X DELETE $objRmUrl`
|
||||
rmResult=$(curl -k -u $Infoblox_Creds -X DELETE $objRmUrl)
|
||||
# Check if rm succeeded
|
||||
if _info "$rmResult" | egrep 'record:txt/.*:.*/default'; then
|
||||
_info "Successfully deleted $objRef"
|
||||
|
Loading…
x
Reference in New Issue
Block a user