File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 2929# store from OCI Object Storage.
3030# -----------------------------------------------------------------------------
3131
32- import re
32+ import base64
3333import json
3434import oci
3535import oracledb
36+ import re
3637
3738from urllib .parse import urlparse , parse_qs
3839
@@ -212,7 +213,9 @@ def password_type_oci_vault_hook(args):
212213 get_secret_bundle_response = secret_client_oci .get_secret_bundle (
213214 ** get_secret_bundle_request
214215 )
215- return get_secret_bundle_response .data .secret_bundle_content .content
216+ # decoding the vault content
217+ b64content = get_secret_bundle_response .data .secret_bundle_content .content
218+ return base64 .b64decode (b64content ).decode ()
216219
217220
218221def _retrieve_region (objservername ):
You can’t perform that action at this time.
0 commit comments