mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Updated use of base64_b64encode and change log
This commit is contained in:
parent
b8bb8f4c70
commit
f9d456bf10
2 changed files with 5 additions and 4 deletions
1
changelog/63063.fixed.md
Normal file
1
changelog/63063.fixed.md
Normal file
|
@ -0,0 +1 @@
|
|||
Corrected encoding of credentials for use with Artifactory
|
|
@ -79,7 +79,7 @@ def get_latest_snapshot(
|
|||
headers = {}
|
||||
if username and password:
|
||||
headers["Authorization"] = "Basic {}".format(
|
||||
salt.utils.hashutils.base64_encode(
|
||||
salt.utils.hashutils.base64_b64encode(
|
||||
"{}:{}".format(username.replace("\n", ""), password.replace("\n", ""))
|
||||
)
|
||||
)
|
||||
|
@ -165,7 +165,7 @@ def get_snapshot(
|
|||
headers = {}
|
||||
if username and password:
|
||||
headers["Authorization"] = "Basic {}".format(
|
||||
salt.utils.hashutils.base64_encode(
|
||||
salt.utils.hashutils.base64_b64encode(
|
||||
"{}:{}".format(username.replace("\n", ""), password.replace("\n", ""))
|
||||
)
|
||||
)
|
||||
|
@ -238,7 +238,7 @@ def get_latest_release(
|
|||
headers = {}
|
||||
if username and password:
|
||||
headers["Authorization"] = "Basic {}".format(
|
||||
salt.utils.hashutils.base64_encode(
|
||||
salt.utils.hashutils.base64_b64encode(
|
||||
"{}:{}".format(username.replace("\n", ""), password.replace("\n", ""))
|
||||
)
|
||||
)
|
||||
|
@ -320,7 +320,7 @@ def get_release(
|
|||
headers = {}
|
||||
if username and password:
|
||||
headers["Authorization"] = "Basic {}".format(
|
||||
salt.utils.hashutils.base64_encode(
|
||||
salt.utils.hashutils.base64_b64encode(
|
||||
"{}:{}".format(username.replace("\n", ""), password.replace("\n", ""))
|
||||
## f"{username.replace("\n", "")}:{password.replace("\n", "")}")
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue