File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 2.7.0 "
2
+ "version" : " 2.7.1 "
3
3
}
Original file line number Diff line number Diff line change @@ -150,12 +150,13 @@ def set_auth(
150
150
151
151
auth_state .oci_config = config
152
152
auth_state .oci_key_profile = profile
153
- if os .path .exists (os .path .expanduser (oci_config_location )):
154
- auth_state .oci_config_path = oci_config_location
155
- else :
156
- raise ValueError (
157
- f"{ oci_config_location } path does not exist, please provide existing path to config file."
158
- )
153
+ if auth == AuthType .API_KEY :
154
+ if os .path .exists (os .path .expanduser (oci_config_location )):
155
+ auth_state .oci_config_path = oci_config_location
156
+ else :
157
+ raise ValueError (
158
+ f"{ oci_config_location } path does not exist, please provide existing path to config file."
159
+ )
159
160
160
161
auth_state .oci_signer = signer
161
162
auth_state .oci_signer_callable = signer_callable
You can’t perform that action at this time.
0 commit comments