Waded through more undocumented source

Implemented _base64 instead of base64
This commit is contained in:
Jason 2017-03-21 08:38:59 -05:00 committed by GitHub
parent 2b58c243b2
commit fc627746c7

View File

@ -25,7 +25,7 @@ dns_infoblox_add() {
_saveaccountconf Infoblox_Server "$Infoblox_Server"
## Base64 encode the credentials
Infoblox_CredsEncoded=$(echo -n "$Infoblox_Creds" | base64)
Infoblox_CredsEncoded=$(printf "$Infoblox_Creds" | _base64)
## Construct the HTTP Authorization header
export _H2="Authorization: Basic $Infoblox_CredsEncoded"
@ -57,7 +57,7 @@ dns_infoblox_rm() {
_debug txtvalue "$txtvalue"
## Base64 encode the credentials
Infoblox_CredsEncoded=$(echo -n "$Infoblox_Creds" | base64)
Infoblox_CredsEncoded=$(printf "$Infoblox_Creds" | _base64)
## Construct the HTTP Authorization header
export _H2="Authorization: Basic $Infoblox_CredsEncoded"