From 73e4539793dc7943d3bd106bb7334d1b26458044 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 17 Mar 2017 13:19:42 -0500 Subject: [PATCH] Formatting, redux --- dns_infoblox.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dns_infoblox.sh b/dns_infoblox.sh index 20a3d849..9375403e 100644 --- a/dns_infoblox.sh +++ b/dns_infoblox.sh @@ -26,10 +26,10 @@ dns_infoblox_add() { ## Base64 encode the credentials Infoblox_CredsEncoded=$(echo -n "$Infoblox_Creds" | base64) - + ## Construct the HTTP Authorization header export _H2="Authorization: Basic $Infoblox_CredsEncoded" - + ## Add the challenge record to the Infoblox grid member result=$(_post "" "$baseurlnObject" "" "POST") @@ -58,10 +58,10 @@ dns_infoblox_rm() { ## Base64 encode the credentials Infoblox_CredsEncoded=$(echo -n "$Infoblox_Creds" | base64) - + ## Construct the HTTP Authorization header export _H2="Authorization: Basic $Infoblox_CredsEncoded" - + ## Does the record exist? Let's check. baseurlnObject="https://$Infoblox_Server/wapi/v2.2.2/record:txt?name=$fulldomain&text=$txtvalue&_return_type=xml-pretty" result=$(_get "$baseurlnObject") @@ -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"