Skip to content

Commit 7607226

Browse files
committed
Fixed the security token issue.
1 parent 3ef30e6 commit 7607226

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ads/opctl/cli.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,10 +192,10 @@ def init_vscode(**kwargs):
192192
"--oci-config",
193193
help="oci config file",
194194
required=False,
195-
default=None,
195+
default=authutil.DEFAULT_LOCATION,
196196
),
197197
click.option(
198-
"--oci-profile", help="oci config profile", required=False, default=None
198+
"--oci-profile", help="oci config profile", required=False, default=authutil.DEFAULT_PROFILE
199199
),
200200
click.option(
201201
"--conf-file",
@@ -393,7 +393,11 @@ def run(file, **kwargs):
393393
if os.path.exists(file):
394394
auth = {}
395395
if kwargs["auth"]:
396-
auth = authutil.create_signer(kwargs["auth"])
396+
auth = authutil.create_signer(
397+
auth_type=kwargs["auth"],
398+
oci_config_location=kwargs["oci_config"],
399+
profile=kwargs["oci_profile"]
400+
)
397401
else:
398402
auth = authutil.default_signer()
399403

0 commit comments

Comments
 (0)