File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,8 @@ def run_oci_command(
195195 config = generate_config (upst , PRIVATE_KEY , "us-sanjose-1" )
196196
197197 # write security token to a file
198+ # using temporary files until
199+ # https://github.com/oracle/oci-cli/pull/993
198200 with tempfile .NamedTemporaryFile (mode = "wb" ) as temp_file :
199201 with tempfile .NamedTemporaryFile (mode = "wb" ) as key_temp_file :
200202 temp_file .write (upst .encode ("utf-8" ))
@@ -214,6 +216,7 @@ def run_oci_command(
214216 "OCI_CLI_FINGERPRINT" : config ["fingerprint" ],
215217 "OCI_CLI_AUTH" : "security_token" ,
216218 # this won't work without an update to oci-cli
219+ # see: https://github.com/oracle/oci-cli/pull/993
217220 # "OCI_CLI_KEY_CONTENT": config["key_content"],
218221 "OCI_CLI_KEY_FILE" : key_temp_file .name ,
219222 "OCI_CLI_SECURITY_TOKEN_FILE" : temp_file .name ,
You can’t perform that action at this time.
0 commit comments