mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-08 09:42:44 +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
|
if _info "$result" | egrep 'record:txt/.*:.*/default'; then
|
||||||
# Extract object ref
|
# 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"
|
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
|
# Check if rm succeeded
|
||||||
if _info "$rmResult" | egrep 'record:txt/.*:.*/default'; then
|
if _info "$rmResult" | egrep 'record:txt/.*:.*/default'; then
|
||||||
_info "Successfully deleted $objRef"
|
_info "Successfully deleted $objRef"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user